From 4822ee19eef77ba2b244484f651108f2a063142d Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 2 Jul 2023 05:23:15 +0300 Subject: [PATCH] i forgot '!' --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 426db1a1..d4330649 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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;