mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Fix TNT block not setting fuse NBT correctly (#1917)
This commit is contained in:
parent
8d7c65585c
commit
e850f34d76
@ -60,7 +60,7 @@ class TNT extends Solid{
|
||||
|
||||
$mot = (new Random())->nextSignedFloat() * M_PI * 2;
|
||||
$nbt = Entity::createBaseNBT($this->add(0.5, 0, 0.5), new Vector3(-sin($mot) * 0.02, 0.2, -cos($mot) * 0.02));
|
||||
$nbt->setByte("Fuse", $fuse);
|
||||
$nbt->setShort("Fuse", $fuse);
|
||||
|
||||
$tnt = Entity::createEntity("PrimedTNT", $this->getLevel(), $nbt);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user