mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-08 11:37:51 +08:00
Update InteractListeners.java
This commit is contained in:
parent
e7171a2fb9
commit
2a21a94581
@ -149,7 +149,7 @@ public class InteractListeners implements Listener {
|
||||
|
||||
if (Settings.GIVE_OLD_EGG.getBoolean()) {
|
||||
CreatureSpawner creatureSpawner = (CreatureSpawner) block.getState();
|
||||
ItemStack oldEgg = new ItemStack(Material.LEGACY_MONSTER_EGG, 1, creatureSpawner.getSpawnedType().getTypeId());
|
||||
ItemStack oldEgg = CompatibleMaterial.getSpawnEgg(creatureSpawner.getSpawnedType()).getItem();
|
||||
player.getInventory().addItem(oldEgg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user