mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 02:17:38 +01:00
fix
This commit is contained in:
parent
c827354d9e
commit
deeae70585
@ -21,10 +21,10 @@ public class Reflection {
|
||||
Class<?> clazzMobSpawnerAbstract = Class.forName("net.minecraft.server." + ver + ".MobSpawnerAbstract");
|
||||
methodGetTileEntity = clazzCraftCreatureSpawner.getDeclaredMethod("getTileEntity");
|
||||
methodGetSpawner = clazzTileEntityMobSpawner.getDeclaredMethod("getSpawner");
|
||||
fieldSpawnount = clazzMobSpawnerAbstract.getDeclaredField("spawnRange");
|
||||
fieldSpawnount.setAccessible(true);
|
||||
fieldMaxNearbyEntities = clazzMobSpawnerAbstract.getDeclaredField("spawnCount");
|
||||
fieldSpawnount = clazzMobSpawnerAbstract.getDeclaredField("spawnCount");
|
||||
fieldSpawnount.setAccessible(true);
|
||||
fieldMaxNearbyEntities = clazzMobSpawnerAbstract.getDeclaredField("maxNearbyEntities");
|
||||
fieldMaxNearbyEntities.setAccessible(true);
|
||||
}
|
||||
|
||||
Object objCraftCreatureSpawner = clazzCraftCreatureSpawner.cast(creatureSpawner);
|
||||
|
Loading…
Reference in New Issue
Block a user