Fixed DroppedItems not being restored after save

This commit is contained in:
Shoghi Cervantes 2014-05-28 16:09:57 +02:00
parent 130b2c4910
commit f795a3f565
2 changed files with 2 additions and 1 deletions

View File

@ -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(){

View File

@ -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;
}