mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
hm
This commit is contained in:
parent
2ad5a5650e
commit
a21e532d2a
9 changed files with 104 additions and 152 deletions
|
|
@ -40,13 +40,14 @@ class FarmlandBlock extends TransparentBlock{
|
|||
|
||||
|
||||
}
|
||||
|
||||
public static function checkWaterStatic(Level $level, $x, $y, $z){
|
||||
for($bx = $x - 4; $bx <= $x + 4; $bx++){
|
||||
for($by = $y; $by <= $y + 1; $by++){
|
||||
for($bz = $z - 4; $bz <= $z + 4; $bz++){
|
||||
|
||||
public static function checkWaterStatic(Level $level, $x, $y, $z)
|
||||
{
|
||||
for ($bx = $x - 4; $bx <= $x + 4; $bx++) {
|
||||
for ($by = $y; $by <= $y + 1; $by++) {
|
||||
for ($bz = $z - 4; $bz <= $z + 4; $bz++) {
|
||||
$id = $level->level->getBlockID($bx, $by, $bz);
|
||||
if($id === 8 || $id === 9){
|
||||
if ($id === 8 || $id === 9) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue