summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentf55c8191850d21599ee8abde2d378cfff3154f80 (diff)
downloadcraftbukkit-1b982fd67efd09964d565b9ee71df9d4fb0eb093.tar
craftbukkit-1b982fd67efd09964d565b9ee71df9d4fb0eb093.tar.gz
craftbukkit-1b982fd67efd09964d565b9ee71df9d4fb0eb093.tar.lz
craftbukkit-1b982fd67efd09964d565b9ee71df9d4fb0eb093.tar.xz
craftbukkit-1b982fd67efd09964d565b9ee71df9d4fb0eb093.zip
Tweak Block.getTemperature to return actual block temperatureHEADmaster
Diffstat (limited to 'src')
-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() {