Fixing the collar of pain localization

This commit is contained in:
Jeremy Diamond committed 2015-02-08 10:47:56 -08:00
1 parent e4e6e757a9
commit 7c9f6d1bea
1 file changed
+3 -3
@@ -112,12 +112,12 @@ public class ItemSubCollar extends ItemAmuletVis {
itemstack.stackTagCompound.setString("owner", player.getDisplayName());
baubles.setInventorySlotContents(0, itemstack.copy());
itemstack.stackSize = 0;
sub.addChatMessage(new ChatComponentText(player.getDisplayName() + String.format(StatCollector.translateToLocal("message.collar.alreadywearing"))));
player.addChatMessage(new ChatComponentText(sub.getDisplayName() + String.format(StatCollector.translateToLocal("message.collar.youplacecollar"))));
sub.addChatMessage(new ChatComponentText(StatCollector.translateToLocal("message.collar.placescollar").replace("%s", player.getDisplayName())));
player.addChatMessage(new ChatComponentText(StatCollector.translateToLocal("message.collar.youplacecollar").replace("%s", sub.getDisplayName())));
return true;
}
else
player.addChatMessage(new ChatComponentText(sub.getDisplayName() + String.format(StatCollector.translateToLocal("message.collar.alreadywearing"))));
player.addChatMessage(new ChatComponentText(StatCollector.translateToLocal("message.collar.alreadywearing").replace("%s", sub.getDisplayName())));
}
return false;
}