some fixes to prevent deprecated warning spam on php 8.2

This commit is contained in:
GameHerobrine 2026-01-05 10:39:06 +03:00
parent 1272932257
commit 2f6e2ffcab
10 changed files with 12 additions and 7 deletions

View file

@ -32,7 +32,7 @@ class Zombie extends Monster{
}
for($y = (int)$this->y; $y < 129; $y++){
$block = $this->level->level->getBlockID($this->x, $y, $this->z);
$block = $this->level->level->getBlockID(floor($this->x), $y, floor($this->z));
if(StaticBlock::getIsSolid($block)){
return false;
}