Fixed backwards compatibility issue on PlayerInteractyEvent

This commit is contained in:
Shoghi Cervantes
2015-04-10 10:16:03 +02:00
parent a7b1c6e086
commit 5d102c2ede
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class PlayerInteractEvent extends PlayerEvent implements Cancellable{
$this->touchVector = new Vector3(0, 0, 0);
}else{
$this->touchVector = $block;
Block::get(0, 0, new Position(0, 0, 0, $player->level));
$this->blockTouched = Block::get(0, 0, new Position(0, 0, 0, $player->level));
}
$this->player = $player;
$this->item = $item;