Fixed a few missing methods due to multiworld conversion

This commit is contained in:
Zhuowei Zhang 2013-05-16 19:03:18 -07:00
parent 7bbda6dd67
commit 4678b57c75
3 changed files with 5 additions and 5 deletions

View file

@ -229,7 +229,7 @@ class BlockAPI{
break;
}
if($this->server->api->getProperty("item-enforcement") === false){
$this->drop(new Vector3($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5), $item, true);
$this->server->api->entity->drop(new Position($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5, $player->level), $item, true);
}else{
$player->addItem($item->getID(), $item->getMetadata(), $item->count);
}
@ -781,4 +781,4 @@ class BlockAPI{
}
}
}
}