mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
fixed setBlock with non int coords
This commit is contained in:
parent
8f9a9debc5
commit
51da304178
1 changed files with 3 additions and 3 deletions
|
|
@ -774,9 +774,9 @@ class PMFLevel extends PMF{
|
||||||
}elseif($this->chunks[$index][$Y] === false){
|
}elseif($this->chunks[$index][$Y] === false){
|
||||||
$this->fillMiniChunk($X, $Z, $Y);
|
$this->fillMiniChunk($X, $Z, $Y);
|
||||||
}
|
}
|
||||||
$aX = $x - ($X << 4);
|
$aX = $x & 0xf;
|
||||||
$aZ = $z - ($Z << 4);
|
$aZ = $z & 0xf;
|
||||||
$aY = $y - ($Y << 4);
|
$aY = $y & 0xf;
|
||||||
$bindex = (int) ($aY + $aX*40 + $aZ*640);
|
$bindex = (int) ($aY + $aX*40 + $aZ*640);
|
||||||
$mindex = (int) (($aY >> 1) + 16 + $aX*40 + $aZ*640);
|
$mindex = (int) (($aY >> 1) + 16 + $aX*40 + $aZ*640);
|
||||||
$old_b = ord($this->chunks[$index][$Y][$bindex]);
|
$old_b = ord($this->chunks[$index][$Y][$bindex]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue