Jump to content

[1.7.2][Solved]One String is NOT another similar String. Very strange


Recommended Posts

Posted

That's really stupid. I don't know what's wrong.

When I check equality of par3World.func_147439_a(par4, par5, par6) (This fuction gets Block) to Blocks.stone (This IS Block)

if (par3World.func_147439_a(par4, par5, par6) == Blocks.stone)

I knock on the stone, all goes good. As it should be!

But when I check equality of par3World.func_147439_a(par4, par5, par6).func_149739_a() to Blocks.stone.func_149739_a()

func_149739_a() gives unlocalized name of block like "tile.stone"

First of all I checked it in console

System.out.println(par3World.func_147439_a(par4, par5, par6).func_149739_a());
System.out.println(Blocks.stone.func_149739_a();

In console I saw ABSOLUTELY same strings tile.stone and tile.stone

BUUUTTT!!!!!!

if (par3World.func_147439_a(par4, par5, par6).func_149739_a() == Blocks.stone.func_149739_a())

AND THEY'RE NOT EQUAL ANYMORE!!!!!!!!! But they're equal, I know it.

 

ALSO

if (Blocks.stone.func_149739_a() == Blocks.stone.func_149739_a())

AND HE SAYS THAT THESE STRINGS ARE NOT EQUAL!!!!!!!!!!!!!!!!!!!

Please help, it's very strange.

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

Not very strange at all.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Oh, sorry. I didn't know. i am bad programmer, that's true. Thank tou all and sorry for my silliness.

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.