This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-17 15:17:33 +01:00
parent 378506a55a
commit d573f8f6da
3 changed files with 42 additions and 12 deletions

View File

@ -335,8 +335,7 @@ class Session{
break;
case MC_REMOVE_BLOCK:
$data["eid"] = $this->eid;
$this->server->api->level->handle($data, "onBlockBreak");
//$this->server->trigger("onBlockBreak", $data);
$this->server->handle("onBlockBreak", $data);
break;
case MC_INTERACT:
if(isset($this->server->entities[$data["target"]]) and Utils::distance($this->entity->position, $this->server->entities[$data["target"]]->position) <= 8){