From a7e9aa4bc1fa96ae1cca14d8a53b32dc0d0d8f5d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 5 Oct 2017 17:38:32 -0400 Subject: [PATCH] Fixed falling sand replacing wrong blocks when moved slightly by currents --- src/pocketmine/entity/FallingSand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/FallingSand.php b/src/pocketmine/entity/FallingSand.php index 4a8550c23..a447dfce3 100644 --- a/src/pocketmine/entity/FallingSand.php +++ b/src/pocketmine/entity/FallingSand.php @@ -95,7 +95,7 @@ class FallingSand extends Entity{ $hasUpdate = parent::entityBaseTick($tickDiff); if($this->isAlive()){ - $pos = Position::fromObject($this->add(-0.5, $this->height, -0.5)->floor(), $this->getLevel()); + $pos = Position::fromObject($this->add(-$this->width / 2, $this->height, -$this->width / 2)->floor(), $this->getLevel()); $this->block->position($pos);