mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 01:29:55 +00:00
Fixed possible undefined NBT in Furnace, close #1398
This commit is contained in:
parent
6e961ae897
commit
f12701e582
@ -53,6 +53,10 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{
|
||||
}
|
||||
if(!isset($nbt->MaxTime)){
|
||||
$nbt->MaxTime = new ShortTag("BurnTime", $nbt->BurnTime->getValue());
|
||||
unset($nbt->BurnTicks);
|
||||
}
|
||||
|
||||
if(!isset($nbt->BurnTicks)){
|
||||
$nbt->BurnTicks = new ShortTag("BurnTicks", 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user