From 461da021035693e2fde732bd383b44888700aea1 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 3 Dec 2019 18:12:13 -0500 Subject: [PATCH] Fixed an issue where spawn reasons wouldnt be carried over. --- .../java/com/songoda/ultimatestacker/entity/EntityStack.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java index e9d2541..fc57949 100644 --- a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java +++ b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java @@ -146,6 +146,9 @@ public class EntityStack { newEntity.getEquipment().setItemInHand(CompatibleMaterial.GOLDEN_SWORD.getItem()); if (Settings.CARRY_OVER_METADATA_ON_DEATH.getBoolean()) { + if (killed.hasMetadata("US_REASON")) + newEntity.setMetadata("US_REASON", killed.getMetadata("US_REASON").get(0)); + if (killed.hasMetadata("ES")) newEntity.setMetadata("ES", killed.getMetadata("ES").get(0));