Merge pull request #42 from kran27/setblock

setblock fixes
This commit is contained in:
GameHerobrine 2024-03-26 11:36:51 +03:00 • committed by GitHub
commit fe0782e4fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];
}
}