mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39: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){
|
||||
$this->fillMiniChunk($X, $Z, $Y);
|
||||
}
|
||||
$aX = $x - ($X << 4);
|
||||
$aZ = $z - ($Z << 4);
|
||||
$aY = $y - ($Y << 4);
|
||||
$aX = $x & 0xf;
|
||||
$aZ = $z & 0xf;
|
||||
$aY = $y & 0xf;
|
||||
$bindex = (int) ($aY + $aX*40 + $aZ*640);
|
||||
$mindex = (int) (($aY >> 1) + 16 + $aX*40 + $aZ*640);
|
||||
$old_b = ord($this->chunks[$index][$Y][$bindex]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue