summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-19 10:53:08 +1100
committermd_5 <git@md-5.net>2018-12-19 10:53:08 +1100
commit1b982fd67efd09964d565b9ee71df9d4fb0eb093 (patch)
tree35a692db6a9bb572697b7a823f05d1f7195cda60
parentf55c8191850d21599ee8abde2d378cfff3154f80 (diff)
downloadcraftbukkit-master.tar
craftbukkit-master.tar.gz
craftbukkit-master.tar.lz
craftbukkit-master.tar.xz
craftbukkit-master.zip
Tweak Block.getTemperature to return actual block temperatureHEADmaster
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
index 89c67aa2..d4012707 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -436,7 +436,7 @@ public class CraftBlock implements Block {
}
public double getTemperature() {
- return getWorld().getTemperature(getX(), getZ());
+ return world.getBiome(position).c(position); // PAIL: getAdjustedTemperature
}
public double getHumidity() {