From 2c5950176ce4261bc56a6467043e4f04d226e789 Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:47:44 +0200 Subject: [PATCH] Only send name GUI message to server-sided players #136 --- 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 c1e2541dc..e787b9230 100644 --- a/src/main/java/drzhark/mocreatures/MoCTools.java +++ b/src/main/java/drzhark/mocreatures/MoCTools.java @@ -815,7 +815,7 @@ public static boolean tameWithName(EntityPlayer ep, IMoCTameable storedCreature) } storedCreature.setOwnerId(ep.getUniqueID()); // ALWAYS SET OWNER. Required for our new pet save system. - if (MoCreatures.proxy.alwaysNamePets) { + if (MoCreatures.proxy.alwaysNamePets && ep instanceof EntityPlayerMP) { MoCMessageHandler.INSTANCE.sendTo(new MoCMessageNameGUI(((Entity) storedCreature).getEntityId()), (EntityPlayerMP) ep); } storedCreature.setTamed(true);