mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed FallingSand crash
This commit is contained in:
parent
7c361a52d2
commit
4a78ffd2dd
@ -90,7 +90,7 @@ class FallingSand extends Entity{
|
||||
|
||||
if(!$this->dead){
|
||||
if($this->ticksLived === 1){
|
||||
$block = $this->level->getBlock((new Vector3($this->x, $this->y, $this->z))->floor());
|
||||
$block = $this->level->getBlock($pos = (new Vector3($this->x, $this->y, $this->z))->floor());
|
||||
if($block->getID() != $this->blockId){
|
||||
$this->kill();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user