mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
maybe i should stop touching that part
This commit is contained in:
parent
de2a5d6400
commit
e9c6f473ef
1 changed files with 3 additions and 3 deletions
|
|
@ -538,9 +538,9 @@ class Entity extends Position
|
||||||
|
|
||||||
$ywMin = floor($aABB->minY + 0.4);
|
$ywMin = floor($aABB->minY + 0.4);
|
||||||
$ywMax = ceil($aABB->maxY - 0.4);
|
$ywMax = ceil($aABB->maxY - 0.4);
|
||||||
for($x = $x0; $x < $x1; ++$x){
|
for($x = $x0; $x <= $x1; ++$x){
|
||||||
for($y = $y0; $y < $y1; ++$y){
|
for($y = $y0; $y <= $y1; ++$y){
|
||||||
for($z = $z0; $z < $z1; ++$z){
|
for($z = $z0; $z <= $z1; ++$z){
|
||||||
$b = $this->level->level->getBlockID($x, $y, $z);
|
$b = $this->level->level->getBlockID($x, $y, $z);
|
||||||
if(($b === WATER || $b === STILL_WATER)){
|
if(($b === WATER || $b === STILL_WATER)){
|
||||||
$water = $y == ($y1 - 1);
|
$water = $y == ($y1 - 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue