From 2ebad9cbe119a8f8adf4484186946c9de1c239e7 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sun, 20 Jun 2021 20:25:17 +0200 Subject: [PATCH] Add setSlot override to NMS class --- .../nms/v1_16_R3/EntityNMSArmorStand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/EntityNMSArmorStand.java b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/EntityNMSArmorStand.java index 186ad0fa..59b939f6 100644 --- a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/EntityNMSArmorStand.java +++ b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/EntityNMSArmorStand.java @@ -157,6 +157,11 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta // Prevent armor stand from being equipped } + @Override + public void setSlot(EnumItemSlot enumitemslot, ItemStack itemstack, boolean silent) { + // Prevent armor stand from being equipped + } + @Override public void a(AxisAlignedBB boundingBox) { // Prevent changes to bounding box