mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Handlers
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user