SmartCursor icon indicating copy to clipboard operation
SmartCursor copied to clipboard

Unlocalized Name

Open Zilacon opened this issue 8 years ago • 6 comments

I have been trying to figure out how to remove this. Could this please be added to the config or something?

screenshot_25

I am using V1.5 for 1.7.10

Zilacon avatar Mar 07 '16 18:03 Zilacon

Is from this mod I have just confirmed it. I don't understand how to turn it off.

ghost avatar Sep 26 '16 01:09 ghost

I managed to fix this by unpacking the jar file and editing the class file using Rewolf Dirtyjoe and deleting that last addTooltipText method. @Zilacon 2 years late but fixed it 👍

image

The problem is in that last commit in that last method . I the first if Left Shit || Right Shift it is always true.

https://github.com/asaskevich/SmartCursor/commit/40d2af222e7122583e63a0976fc50212b8d9d940

if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
            	if (event.showAdvancedItemTooltips)
            		{
        	  		event.toolTip.add("Name: " + GameData.getItemRegistry().getNameForObject(stack.getItem()));
        	  		event.toolTip.add("Unlocalized name:" + stack.getUnlocalizedName());
        	  		for (int id : OreDictionary.getOreIDs(stack)) event.toolTip.add(EnumChatFormatting.ITALIC + OreDictionary.getOreName(id));
            		}
}

ghost avatar Feb 23 '18 22:02 ghost

@Zilacon @trollworkout thanks, will look on it

asaskevich avatar Sep 11 '18 09:09 asaskevich

You never made an update for the version this issue was reported for (1.7.10) only one updated on your website is 1.12.2. Please make a version for 1.7.10. @asaskevich

Zilacon avatar Oct 07 '18 06:10 Zilacon

我通过解压缩JAR文件并使用ReWolf Dirtyjoe编辑类文件并删除了最后一个addTooltipText方法来修复这个问题。@齐拉肯迟了两年但修好了👍

image

问题在于最后一次提交在最后一个方法中。我是第一个,如果左转,右转,它总是正确的。

40d2af2

if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
            	if (event.showAdvancedItemTooltips)
            		{
        	  		event.toolTip.add("Name: " + GameData.getItemRegistry().getNameForObject(stack.getItem()));
        	  		event.toolTip.add("Unlocalized name:" + stack.getUnlocalizedName());
        	  		for (int id : OreDictionary.getOreIDs(stack)) event.toolTip.add(EnumChatFormatting.ITALIC + OreDictionary.getOreName(id));
            		}
}

Can you give me a detailed tutorial? I do n’t understand English, but I can see it through translation, although the translator is not very accurate.

ainlzj avatar Jun 01 '20 08:06 ainlzj

It is one of my favorite modules. A module can be used as several mods. So let me talk about the advantages and disadvantages of this mod: various powerful functions such as equipment display, dropped items display, HP display (favorite), Transparency, etc. Disadvantages: The interface optimization is not as good as: a long reminder that only the left and right displays can be adjusted and cannot be adjusted freely will block other MOD displays, and the name is displayed incorrectly because I do n’t understand English. I can only observe your problems roughly through the translator. Please forgive me i really like it

ainlzj avatar Jun 01 '20 08:06 ainlzj