i forgot '!'

This commit is contained in:
GameHerobrine 2023-07-02 05:23:15 +03:00
parent 3c57ef80b1
commit 4822ee19ee

View file

@ -412,7 +412,7 @@ class Entity extends Position
$blockY = (int) ($this->y + $this->getEyeHeight() + $y);
$blockZ = (int) ($this->z + $z);
if($this->level->getBlockWithoutVector($blockX, $blockY, $blockZ)->isTransparent){
if(!$this->level->getBlockWithoutVector($blockX, $blockY, $blockZ)->isTransparent){
$this->harm(1, "suffocation"); // Suffocation
$hasUpdate = true;
break;