mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Complete ChunkData sending!
This commit is contained in:
parent
6ef600942b
commit
e76734628a
2 changed files with 7 additions and 4 deletions
|
|
@ -60,6 +60,9 @@ class LevelAPI{
|
|||
for($i = 0;$i < 0xff; ){
|
||||
$ordered[$i] = str_repeat("\x00", $i);
|
||||
for($j = 0; $j < $columnsPerPacket; ++$j){
|
||||
if(($i + $j) >= 0xff){
|
||||
break;
|
||||
}
|
||||
$ordered[$i] .= "\xff";
|
||||
for($k = 0; $k < 8; ++$k){
|
||||
$ordered[$i] .= substr($c[0][$i+$j], $k << 4, 16); //Block data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue