Added Item namespace

This commit is contained in:
Shoghi Cervantes
2014-03-06 15:11:46 +01:00
parent e3f1db0f45
commit 419f246e68
78 changed files with 1057 additions and 744 deletions

View File

@ -49,7 +49,7 @@ class LadderBlock extends TransparentBlock{
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
/*if($this->getSide(0)->getID() === AIR){ //Replace with common break method
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(LADDER, 0, 1));
ServerAPI::request()->api->entity->drop($this, Item\Item::get(LADDER, 0, 1));
$this->level->setBlock($this, new AirBlock(), true, true, true);
return BLOCK_UPDATE_NORMAL;
}*/