1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-04-01 12:11:45 +02:00

Hook into World for light getters due to additional validation.

This commit is contained in:
md_5 2016-07-25 19:04:06 +10:00
parent 9ff3d7f51f
commit 09f1a19609

View file

@ -173,11 +173,11 @@ public class CraftBlock implements Block {
}
public byte getLightFromSky() {
return (byte) chunk.getHandle().getBrightness(EnumSkyBlock.SKY, new BlockPosition(this.x, this.y, this.z));
return (byte) chunk.getHandle().getWorld().b(EnumSkyBlock.SKY, new BlockPosition(this.x, this.y, this.z)); // PAIL: rename
}
public byte getLightFromBlocks() {
return (byte) chunk.getHandle().getBrightness(EnumSkyBlock.BLOCK, new BlockPosition(this.x, this.y, this.z));
return (byte) chunk.getHandle().getWorld().b(EnumSkyBlock.BLOCK, new BlockPosition(this.x, this.y, this.z)); // PAIL: rename
}