debug fix skylight

This commit is contained in:
Jesse Boyd 2018-03-16 23:43:57 +11:00
parent 789c923106
commit aace4a37cb
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -7,6 +7,7 @@ import com.boydti.fawe.jnbt.anvil.MCAFilterCounter;
import com.boydti.fawe.object.RunnableVal;
import com.boydti.fawe.object.number.MutableLong;
import com.sk89q.worldedit.blocks.BlockID;
import java.util.Arrays;
public class DebugFixAir extends MCAFilterCounter {
@Override
@ -59,7 +60,10 @@ public class DebugFixAir extends MCAFilterCounter {
cache.add(256);
}
}
if (modified) chunk.setModified();
if (modified) {
Arrays.fill(chunk.skyLight[4], (byte) 255);
chunk.setModified();
}
return null;
}