From fdd20675fa9a820636ea02ac08e38560284d2632 Mon Sep 17 00:00:00 2001 From: Kran <56488228+kran27@users.noreply.github.com> Date: Tue, 26 Mar 2024 00:28:57 -0700 Subject: [PATCH] setblock fixes coordinate check should be inclusive of min and max values, and max for y coordinate should be 127. --- src/API/BlockAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 28b99147..30adaf3d 100755 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -273,7 +273,7 @@ class BlockAPI{ $coords[$i] = round($coord, 0); } elseif(is_numeric($args[$i])){ - if($args[$i] > 0 and $args[$i] < 255){ + if($args[$i] >= 0 and $args[$i] <= ($i === 1 ? 127 : 255)){ $coords[$i] = $args[$i]; } }