This commit is contained in:
Brianna O'Keefe 2018-11-29 20:45:26 -05:00
parent 62a78b3330
commit 93a64e0362
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ public class Reflection {
public static CreatureSpawner setRange(CreatureSpawner creatureSpawner, int amount, int max) {
try {
if (creatureSpawner == null) return creatureSpawner;
if (clazzCraftCreatureSpawner == null) {
String ver = Bukkit.getServer().getClass().getPackage().getName().substring(23);
clazzCraftCreatureSpawner = Class.forName("org.bukkit.craftbukkit." + ver + ".block.CraftCreatureSpawner");