mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Flags now work on mobs, but not on players
This commit no doubt breaks something, somewhere
This commit is contained in:
@ -1605,7 +1605,7 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
* @param bool $value
|
* @param bool $value
|
||||||
* @param int $type
|
* @param int $type
|
||||||
*/
|
*/
|
||||||
public function setDataFlag($propertyId, $id, $value = true, $type = self::DATA_TYPE_BYTE){
|
public function setDataFlag($propertyId, $id, $value = true, $type = self::DATA_TYPE_LONG){
|
||||||
if($this->getDataFlag($propertyId, $id) !== $value){
|
if($this->getDataFlag($propertyId, $id) !== $value){
|
||||||
$flags = (int) $this->getDataProperty($propertyId);
|
$flags = (int) $this->getDataProperty($propertyId);
|
||||||
$flags ^= 1 << $id;
|
$flags ^= 1 << $id;
|
||||||
|
Reference in New Issue
Block a user