Open EngineerXL opened 6 years ago
After re-downloading the latest build I can't reproduce this. I am inclined to think it is something to the fault of UBC / another interaction. What version (MC, Prospectus, Forge, other mods), other mods, language settings / config changes do you have?
I tested with Forge 2757 and 2760. I have Prospectus 1.8 and UBC Reworked & Fixed 1.2.5 This issue occurs only on server SSP SMP
This issue is caused by this : String name = stack.getDisplayName(); The "getDisplayName()" method will only return the translated item name on the client side, as the server has no way of knowing what language the client is using, so it returns the unlocalized name. You need to either do it on the client side, or set your message to be translated by the client.
So I fixed that. It can send the stack.getUnlocalizedName() + ".name" as a TextComponentTranslation(). However, UBC still doesn't work correctly, because it has no translation key for its ores. (It does a weird hacky workaround to translate its ores) So I can fix the server issue but it still won't work with UBC ores.
Any way to replace any UBC ore's name with simple ore bame? E.g migmatite gold ore -> gold ore
I don't want to have to add individual exceptions for UBC. I'll look into if there is another way to do this. Soon™
Also I figured out, that this bug occurs with other non-UBified ore. E.g. ContentTweaker ores
You see this: Is there a way to fix it? Or is it UBC's fault?