Fixed falling sand replacing wrong blocks when moved slightly by currents

This commit is contained in:
Dylan K. Taylor 2017-10-05 17:38:32 -04:00
parent 628ff9449e
commit a7e9aa4bc1

View File

@ -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);