mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
removed Java
This commit is contained in:
parent
c4b03ce13c
commit
bfe23f5547
2 changed files with 1 additions and 49 deletions
|
|
@ -429,7 +429,7 @@ class Entity extends Position
|
|||
$blockY = floor($this->y + $this->getEyeHeight() + $y);
|
||||
$blockZ = floor($this->z + $z);
|
||||
|
||||
if($this->level->getBlockWithoutVector($blockX, $blockY, $blockZ)->isSolid){
|
||||
if(StaticBlock::getIsSolid($this->level->level->getBlockID($blockX, $blockY, $blockZ))){
|
||||
$this->harm(1, "suffocation"); // Suffocation
|
||||
$hasUpdate = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue