Added simple Matrices

This commit is contained in:
Shoghi Cervantes 2013-06-16 14:34:06 +02:00
parent 02721c09a4
commit 19d0c70669
2 changed files with 195 additions and 4 deletions

View file

@ -1367,7 +1367,7 @@ class Player{
}
break;
case MC_INTERACT:
if($this->spawned === false or $this->blocked === true){
if($this->spawned === false){
break;
}
$this->craftingItems = array();
@ -1376,9 +1376,7 @@ class Player{
if($this->gamemode !== VIEW and $this->blocked === false and ($target instanceof Entity) and $this->entity->distance($target) <= 8){
$data["targetentity"] = $target;
$data["entity"] = $this->entity;
if(!($target instanceof Entity)){
break;
}elseif($target->class === ENTITY_PLAYER and ($this->server->api->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($target->player->gamemode & 0x01) === 0x01)){
if($target->class === ENTITY_PLAYER and ($this->server->api->getProperty("pvp") == false or $this->server->difficulty <= 0 or ($target->player->gamemode & 0x01) === 0x01)){
break;
}elseif($this->server->handle("player.interact", $data) !== false){
$slot = $this->getSlot($this->slot);