mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fixed DroppedItems not being restored after save
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user