mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Added some wrapper methods to make data flags less of a pain in the ass to work with
This commit is contained in:
@ -63,7 +63,7 @@ class PrimedTNT extends Entity implements Explosive{
|
||||
$this->fuse = 80;
|
||||
}
|
||||
|
||||
$this->setDataFlag(self::DATA_FLAGS, self::DATA_FLAG_IGNITED, true);
|
||||
$this->setGenericFlag(self::DATA_FLAG_IGNITED, true);
|
||||
$this->setDataProperty(self::DATA_FUSE_LENGTH, self::DATA_TYPE_INT, $this->fuse);
|
||||
|
||||
$this->level->broadcastLevelEvent($this, LevelEventPacket::EVENT_SOUND_IGNITE);
|
||||
|
Reference in New Issue
Block a user