Flags now work on mobs, but not on players

This commit no doubt breaks something, somewhere
This commit is contained in:
Dylan K. Taylor 2016-10-19 13:58:19 +01:00
parent 035084a5ac
commit 468b3e8d44

View File

@ -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;