Only call org.bukkit.World height methods if they're present (1.17+) (#1551)

* Only call org.bukkit.World height methods if they're present (1.17+)

* Switch to WorldEdit get height methods in GPFeature
This commit is contained in:
Jordan
2022-01-29 13:12:16 +01:00
committed by GitHub
parent 4610688fcb
commit 178604bbb7
3 changed files with 9 additions and 4 deletions

View File

@ -85,7 +85,9 @@ public class BukkitWorld extends AbstractWorld {
private static final Logger LOGGER = LogManagerCompat.getLogger();
private static final boolean HAS_3D_BIOMES;
private static final boolean HAS_MIN_Y;
//FAWE start - allow access for easy checking if World#getMin/MaxHeight exists
public static final boolean HAS_MIN_Y;
//FAWE end
private static final Map<Integer, Effect> effects = new HashMap<>();