mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-28 11:27:58 +01:00
Typo
This commit is contained in:
parent
671bc765de
commit
cc1a4a4c0f
@ -215,7 +215,7 @@ public class Methods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack getSpawnerItem(EntityType entityType, int amount) {
|
public static ItemStack getSpawnerItem(EntityType entityType, int amount) {
|
||||||
ItemStack item = new ItemStack((UltimateStacker.getInstance().isServerVersion(ServerVersion.V1_13) ? Material.SPAWNER : Material.valueOf("MOB_SPAWNER")), 1);
|
ItemStack item = new ItemStack((UltimateStacker.getInstance().isServerVersionAtLeast(ServerVersion.V1_13) ? Material.SPAWNER : Material.valueOf("MOB_SPAWNER")), 1);
|
||||||
ItemMeta meta = item.getItemMeta();
|
ItemMeta meta = item.getItemMeta();
|
||||||
meta.setDisplayName(Methods.compileSpawnerName(entityType, amount));
|
meta.setDisplayName(Methods.compileSpawnerName(entityType, amount));
|
||||||
CreatureSpawner cs = (CreatureSpawner) ((BlockStateMeta) meta).getBlockState();
|
CreatureSpawner cs = (CreatureSpawner) ((BlockStateMeta) meta).getBlockState();
|
||||||
|
Loading…
Reference in New Issue
Block a user