Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

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.

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.

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.

  • Author

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...

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

 

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.