mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fixed falling sand replacing wrong blocks when moved slightly by currents
This commit is contained in:
parent
628ff9449e
commit
a7e9aa4bc1
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user