From 0f984dd9a58dc8fbabcf2ca0326934715c4bd185 Mon Sep 17 00:00:00 2001 From: Score_Under Date: Fri, 11 May 2012 13:19:38 +0200 Subject: [PATCH] Re-implement World.getTemperature and World.getHumidity --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 5bc8eb6877..71c3ea75b8 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -523,11 +523,11 @@ public class CraftWorld implements World { } public double getTemperature(int x, int z) { - throw new UnsupportedOperationException("Not compatible with 1.8"); + return this.world.getBiome(x, z).F; } public double getHumidity(int x, int z) { - throw new UnsupportedOperationException("Not compatible with 1.8"); + return this.world.getBiome(x, z).G; } public List getEntities() {