mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Fixed DroppedItems not being restored after save
This commit is contained in:
parent
130b2c4910
commit
f795a3f565
@ -186,6 +186,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
$this->justCreated = false;
|
||||
$this->server->getPluginManager()->callEvent(new EntitySpawnEvent($this));
|
||||
$this->scheduleUpdate();
|
||||
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
|
@ -1128,7 +1128,7 @@ class Level{
|
||||
|
||||
if($nbt->id instanceof String){ //New format
|
||||
switch($nbt["id"]){
|
||||
case "Ttem":
|
||||
case "Item":
|
||||
(new DroppedItem($this, $nbt))->spawnToAll();
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user