From bd4628c13de3f45f52fd189e515cbeb77dda8995 Mon Sep 17 00:00:00 2001 From: Vlele <1207223090@qq.com> Date: Fri, 7 Jun 2019 18:11:03 +0800 Subject: [PATCH] Temp push Former-commit-id: 1014c7316f27875980c3e90a7b9d6c892bb8237b [formerly e1cff21ff1da5fc9ac0a0cc98b8796e0931e1167] Former-commit-id: 9332bc524eff72edcce1840764aebc9386683990 --- .../org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java index e2ef4908f..5302fd82d 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java @@ -66,7 +66,7 @@ public class ArmorStandDisplayItem implements DisplayItem { //this.armorStand.setSmall(true); //Set armorstand item in hand - this.armorStand.setItemInHand(new ItemStack(originalItemStack.getType())); +// this.armorStand.setItemInHand(new ItemStack(originalItemStack.getType())); //Set safeGuard safeGuard(this.armorStand); //Set pose @@ -82,8 +82,8 @@ public class ArmorStandDisplayItem implements DisplayItem { } ArmorStand armorStand = (ArmorStand) entity; //Set item protect in the armorstand's hand -// this.guardedIstack = DisplayItem.createGuardItemStack(this.originalItemStack); - armorStand.setItemInHand(new ItemStack(originalItemStack.getType())); + this.guardedIstack = DisplayItem.createGuardItemStack(this.originalItemStack); + armorStand.setItemInHand(guardedIstack); Util.debugLog("Successfully safeGuard ArmorStand: " + armorStand.getLocation().toString()); }