fixed nbt(which somehow worked before), enderman ai updates

This commit is contained in:
GameHerobrine 2023-02-21 20:08:50 +03:00
parent 9b5a3959c4
commit 12c9e664f0
6 changed files with 41 additions and 20 deletions

View file

@ -431,7 +431,7 @@ class Entity extends Position
$this->fire = 0;
$this->updateMetadata();
}
if ($this->air <= 0 && ! $waterDone) {
if (($this->air <= 0 && ! $waterDone) || $this->type === MOB_ENDERMAN) { //TODO check is correct
$this->harm(2, "water");
$hasUpdate = true;
$waterDone = true;