Jump to content

[Solved] [1.6.4] Disabling the F3 menu/coordinates


Recommended Posts

Posted

Ho, you can extend the KeyBinding class so that it can't be rebind, then set its default as F3, and register it.

That should block the "F3" process, hopefully.

 

By the way, this

if(event.type == RenderGameOverlayEvent.ElementType.TEXT)

is an actual fix for the Battlegear incompatibility. I wonder if i was clear enough about it.

 

Oh! I didn't even think to test it. The whole, "That would work the same." thing made me think it was just bad coding practice on my part.

I'll give that a shot in the morning and come back with the results. Thanks a ton.

Any reason why that one would work, while using .equals() wouldn't though? I'm just not understanding it from a Java perspective.

Posted

Any reason why that one would work, while using .equals() wouldn't though? I'm just not understanding it from a Java perspective.

I'm not sure why it would matter in this particular case, but the "==" operator in Java checks identity (i.e. memory address), whereas the equals method is typically overridden to allow objects to be considered equal even when they are not at the same memory address.

Posted

When it comes to enum, == and #equals(Object) are equivalent, because each element of enum is implicitly static and final at creation time.

The only difference is #equals(Object) is not null safe.

Older versions of Battlegear posted child events of RenderGameOverlayEvent.Pre with a null ElementType.

Posted

Ah, thank you. That makes things a lot clearer.

I really appreciate you swooping to my rescue. :)

Mod working, playing nicely with others, and ready to go again.

Solved.

  • 3 years later...
Posted
On 8/27/2017 at 3:48 PM, Terra said:

is there a 1.7.10 version of this mod and if so where can i download it

 

This post is over 3 years old, and 1.7.10 is no longer supported here.

  • Like 1
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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