mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Flags now work on mobs, but not on players
This commit no doubt breaks something, somewhere
This commit is contained in:
parent
035084a5ac
commit
468b3e8d44
@ -1605,7 +1605,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
* @param bool $value
|
||||
* @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){
|
||||
$flags = (int) $this->getDataProperty($propertyId);
|
||||
$flags ^= 1 << $id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user