Fixed issue with EpicSpawners support.

This commit is contained in:
Brianna O'Keefe 2019-03-02 13:18:53 -05:00
parent d3b462a494
commit e023454c3a

View File

@ -49,7 +49,7 @@ public class Methods {
if (Bukkit.getPluginManager().isPluginEnabled("EpicSpawners"))
if (killed.hasMetadata("ES"))
newEntity.setMetadata("ES", new FixedMetadataValue(com.songoda.epicspawners.EpicSpawnersPlugin.getInstance(), "ES"));
newEntity.setMetadata("ES", killed.getMetadata("ES").get(0));
EntityStack entityStack = stackManager.updateStack(killed, newEntity);