mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +00:00
ItemEntity: don't ignore parent's savable state
This commit is contained in:
parent
5bc7ca6569
commit
23e98a30f5
@ -187,7 +187,7 @@ class ItemEntity extends Entity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function canSaveWithChunk() : bool{
|
public function canSaveWithChunk() : bool{
|
||||||
return !$this->item->isNull();
|
return !$this->item->isNull() && parent::canSaveWithChunk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function saveNBT() : CompoundTag{
|
public function saveNBT() : CompoundTag{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user