mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-06 08:28:14 +01:00
Possible fix for packet sending
This commit is contained in:
parent
8d5fc88844
commit
4430f14677
@ -30,7 +30,12 @@ public class NMSRelighter {
|
||||
|
||||
public boolean addChunk(int cx, int cz, boolean[] fix, int bitmask) {
|
||||
long pair = MathMan.pairInt(cx, cz);
|
||||
if (skyToRelight.containsKey(pair)) {
|
||||
RelightSkyEntry existing = skyToRelight.get(pair);
|
||||
if (existing != null) {
|
||||
existing.bitmask |= bitmask;
|
||||
for (int i = 0; i < fix.length; i++) {
|
||||
existing.fix[i] |= fix[i];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
skyToRelight.put(pair, new RelightSkyEntry(cx, cz, fix, bitmask));
|
||||
@ -331,7 +336,7 @@ public class NMSRelighter {
|
||||
public final int z;
|
||||
public final byte[] mask;
|
||||
public final boolean[] fix;
|
||||
public final int bitmask;
|
||||
public int bitmask;
|
||||
public boolean smooth;
|
||||
|
||||
public RelightSkyEntry(int x, int z, boolean[] fix, int bitmask) {
|
||||
|
Loading…
Reference in New Issue
Block a user