mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Handlers
This commit is contained in:
parent
378506a55a
commit
d573f8f6da
3 changed files with 42 additions and 12 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue