Save placed blocks

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-20 13:50:20 +01:00
parent b52a7ad28e
commit fae7fae8ec
5 changed files with 51 additions and 2 deletions

View file

@ -313,6 +313,12 @@ class Session{
');
console("[INTERNAL] Chunk X ".$data["x"]." Z ".$data["z"]." requested", true, true, 3);
break;
case MC_USE_ITEM:
if($data["face"] >= 0 and $data["face"] <= 5 and $data["block"] !== 0){
$data["eid"] = $this->eid;
$this->server->handle("onBlockPlace", $data);
}
break;
case MC_PLACE_BLOCK:
var_dump($data);
break;