mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
falling tile fixes x2
This commit is contained in:
parent
e7c4c3b8e6
commit
62b846e673
2 changed files with 13 additions and 3 deletions
|
|
@ -27,7 +27,18 @@ class FallingSand extends Entity{
|
|||
$this->close();
|
||||
return;
|
||||
}
|
||||
|
||||
//$level->fastSetBlockUpdate($x, $y, $z, 0, 0, true);
|
||||
if($this->fallTime == 0){
|
||||
$x = floor($this->x);
|
||||
$y = floor($this->y);
|
||||
$z = floor($this->z);
|
||||
if($this->level->level->getBlockID($x, $y, $z) != $this->data["Tile"]){
|
||||
$this->close();
|
||||
return;
|
||||
}
|
||||
$this->level->fastSetBlockUpdate($x, $y, $z, 0, 0, true);
|
||||
}
|
||||
|
||||
$this->lastX = $this->x;
|
||||
$this->lastY = $this->y;
|
||||
$this->lastZ = $this->z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue