From be6707f82dd75947caf251378b33b6001c3bda9b Mon Sep 17 00:00:00 2001 From: Alexis Kaufman Date: Fri, 23 Aug 2024 08:27:01 -0500 Subject: [PATCH] try removing the tag instead of setting it to itself --- src/main/java/drzhark/mocreatures/MoCTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/drzhark/mocreatures/MoCTools.java b/src/main/java/drzhark/mocreatures/MoCTools.java index 4483adfc..7ab8f26b 100644 --- a/src/main/java/drzhark/mocreatures/MoCTools.java +++ b/src/main/java/drzhark/mocreatures/MoCTools.java @@ -1232,7 +1232,7 @@ public static void dismountPassengerFromEntity(Entity passenger, Entity entity, MoCTools.playCustomSound(passenger, SoundEvents.ENTITY_CHICKEN_EGG); if (entity instanceof EntityPlayer) { NBTTagCompound tag = entity.getEntityData(); - tag.setUniqueId("MOCEntity_Riding_Player", entity.getUniqueID()); // set to self, because cannot set to null. + tag.removeTag("MOCEntity_Riding_Player"); // remove the tag if (IMoCEntity.class.isAssignableFrom(passenger.getClass())) { ((IMoCEntity) passenger).onStopRidingPlayer(); }