mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
i forgot '!'
This commit is contained in:
parent
3c57ef80b1
commit
4822ee19ee
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ class Entity extends Position
|
||||||
$blockY = (int) ($this->y + $this->getEyeHeight() + $y);
|
$blockY = (int) ($this->y + $this->getEyeHeight() + $y);
|
||||||
$blockZ = (int) ($this->z + $z);
|
$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
|
$this->harm(1, "suffocation"); // Suffocation
|
||||||
$hasUpdate = true;
|
$hasUpdate = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue