From 77cc4d6a996639cb7bdcbd31b172f01de2233833 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 17 Jan 2023 11:08:05 +0100 Subject: [PATCH] Fix RArmorStand initialization race condition --- SpigotCore_Main/src/de/steamwar/entity/RArmorStand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/entity/RArmorStand.java b/SpigotCore_Main/src/de/steamwar/entity/RArmorStand.java index 7e0e7a7..5513d2b 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/RArmorStand.java +++ b/SpigotCore_Main/src/de/steamwar/entity/RArmorStand.java @@ -59,7 +59,9 @@ public class RArmorStand extends REntity { @Override void spawn(Consumer packetSink) { super.spawn(packetSink); - packetSink.accept(getDataWatcherPacket(sizeWatcher, size.value)); + + if(size != null && size != Size.NORMAL) + packetSink.accept(getDataWatcherPacket(sizeWatcher, size.value)); } public enum Size {