mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-25 18:07:43 +01:00
fx
This commit is contained in:
parent
62a78b3330
commit
93a64e0362
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user