From 3c57ef80b1f55248555213f3beb53b3f95a3a6de Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 2 Jul 2023 05:21:58 +0300 Subject: [PATCH] fixed inWall damage x2 --- src/entity/Entity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 62cc35ae..426db1a1 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)->isSolid){ + if($this->level->getBlockWithoutVector($blockX, $blockY, $blockZ)->isTransparent){ $this->harm(1, "suffocation"); // Suffocation $hasUpdate = true; break; @@ -691,7 +691,6 @@ class Entity extends Position $this->speedX = -($this->lastX - $this->x); $this->speedY = -($this->lastY - $this->y); $this->speedZ = -($this->lastZ - $this->z); - $this->printSpeed(); for($x = floor($this->boundingBox->minX); $x <= ceil($this->boundingBox->maxX); ++$x){ for($z = floor($this->boundingBox->minZ); $z <= ceil($this->boundingBox->maxZ); ++$z){ for($y = floor($this->boundingBox->minY); $y <= ceil($this->boundingBox->maxY); ++$y){