mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
setblock fixes
coordinate check should be inclusive of min and max values, and max for y coordinate should be 127.
This commit is contained in:
parent
a10c6a1d57
commit
fdd20675fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue