Skip to content

Commit

Permalink
Only send name GUI message to server-sided players
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Apr 10, 2024
1 parent cc06d8e commit 2c59501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/drzhark/mocreatures/MoCTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c59501

Please sign in to comment.