Fixed EntityMoveEvent not being cancelled correctly on players

This commit is contained in:
Shoghi Cervantes
2014-09-10 20:06:30 +02:00
parent 60011a5ecf
commit fba12c6ddf
3 changed files with 8 additions and 2 deletions

View File

@@ -1368,7 +1368,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->setRotation($packet->yaw, $packet->pitch);
//$this->inBlock = $this->checkObstruction($this->x, ($this->boundingBox->minY + $this->boundingBox->maxY) / 2, $this->z);
$this->move($dx, $dy, $dz);
$revert = !$this->move($dx, $dy, $dz);
$diffX = $this->x - $newPos->x;
$diffZ = $this->z - $newPos->z;