diff options
author | md_5 <git@md-5.net> | 2016-07-25 19:04:06 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-25 19:04:06 +1000 |
commit | 09f1a196095aa6f221758e0675ccca6e3de72534 (patch) | |
tree | b6e4d45bf6f958aca180b5e0beaa023d1d5104c2 /src | |
parent | 9ff3d7f51f2aafe98a95751caf0b7d5fc700db3e (diff) | |
download | craftbukkit-09f1a196095aa6f221758e0675ccca6e3de72534.tar craftbukkit-09f1a196095aa6f221758e0675ccca6e3de72534.tar.gz craftbukkit-09f1a196095aa6f221758e0675ccca6e3de72534.tar.lz craftbukkit-09f1a196095aa6f221758e0675ccca6e3de72534.tar.xz craftbukkit-09f1a196095aa6f221758e0675ccca6e3de72534.zip |
Hook into World for light getters due to additional validation.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 88818262..03addbd6 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -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 } |