mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
some fixes to prevent deprecated warning spam on php 8.2
This commit is contained in:
parent
1272932257
commit
2f6e2ffcab
10 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue