From 1b982fd67efd09964d565b9ee71df9d4fb0eb093 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 19 Dec 2018 10:53:08 +1100 Subject: Tweak Block.getTemperature to return actual block temperature --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3