mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +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->dead){
|
||||||
if($this->ticksLived === 1){
|
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){
|
if($block->getID() != $this->blockId){
|
||||||
$this->kill();
|
$this->kill();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user