Update InteractListeners.java

This commit is contained in:
GKasparov 2021-09-06 08:54:01 +10:00 committed by GitHub
parent e7171a2fb9
commit 2a21a94581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}