From 8bc03f41b0b525debcfee13c2d2713685c6767d1 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 5 Jun 2019 18:48:45 -0500 Subject: [PATCH] Attempt to fix grass shading in 1.14.x --- .../v114_1/BukkitVersionHelperSpigot114_1.java | 12 ++++++++++++ .../helper/v114/BukkitVersionHelperSpigot114.java | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/bukkit-helper-114-1/src/main/java/org/dynmap/bukkit/helper/v114_1/BukkitVersionHelperSpigot114_1.java b/bukkit-helper-114-1/src/main/java/org/dynmap/bukkit/helper/v114_1/BukkitVersionHelperSpigot114_1.java index ddf9f440..ba5cd292 100644 --- a/bukkit-helper-114-1/src/main/java/org/dynmap/bukkit/helper/v114_1/BukkitVersionHelperSpigot114_1.java +++ b/bukkit-helper-114-1/src/main/java/org/dynmap/bukkit/helper/v114_1/BukkitVersionHelperSpigot114_1.java @@ -171,6 +171,18 @@ public class BukkitVersionHelperSpigot114_1 extends BukkitVersionHelperCB { return ((BiomeBase)bb).m(); } + /** Get temperature from biomebase */ + @Override + public float getBiomeBaseTemperature(Object bb) { + return ((BiomeBase)bb).getTemperature(); + } + + /** Get humidity from biomebase */ + @Override + public float getBiomeBaseHumidity(Object bb) { + return ((BiomeBase)bb).getHumidity(); + } + @Override public Polygon getWorldBorder(World world) { Polygon p = null; diff --git a/bukkit-helper-114/src/main/java/org/dynmap/bukkit/helper/v114/BukkitVersionHelperSpigot114.java b/bukkit-helper-114/src/main/java/org/dynmap/bukkit/helper/v114/BukkitVersionHelperSpigot114.java index 7dfcbfe1..a758fcd4 100644 --- a/bukkit-helper-114/src/main/java/org/dynmap/bukkit/helper/v114/BukkitVersionHelperSpigot114.java +++ b/bukkit-helper-114/src/main/java/org/dynmap/bukkit/helper/v114/BukkitVersionHelperSpigot114.java @@ -171,6 +171,18 @@ public class BukkitVersionHelperSpigot114 extends BukkitVersionHelperCB { return ((BiomeBase)bb).m(); } + /** Get temperature from biomebase */ + @Override + public float getBiomeBaseTemperature(Object bb) { + return ((BiomeBase)bb).getTemperature(); + } + + /** Get humidity from biomebase */ + @Override + public float getBiomeBaseHumidity(Object bb) { + return ((BiomeBase)bb).getHumidity(); + } + @Override public Polygon getWorldBorder(World world) { Polygon p = null;