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.

Zaggy1024

Members
  • Joined

  • Last visited

Everything posted by Zaggy1024

  1. I made hit vector position fields and made it re-set the hitVec to their values and now it's working... perhaps not the best solution, but at least it's working now.
  2. I've been working on a mod for a while, and for it I modified EntityArrow to do a bunch of things, but now I seem to have hit a bug that I can't seem to squash. I made a MovingObjectPosition field called lastHitMOP in it that, when not null, will make onUpdate do the hit code (damaging a living entity or seting inGround true). However, it seems that the hitVec value in it gets set to 0, 0, 0 after a few ticks (it doesn't always seem to happen, it's rather unpredictable), and I have no idea why. I also tried making the hit vector be three double fields instead, but they seemed to get reset too. Here's a pastebin of EntityArrow.java: http://pastebin.com/B7sUcKq4 lastHitMOP is set on line 1067. The hit code begins on line 737. Example debug output: 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT pre -12.461743733321669, 70.04916143532088, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT afterSetPrevMOP -12.461743733321669, 70.04916143532088, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT endrealtick -12.461743733321669, 70.04916143532088, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER pre -12.45898904572035, 70.08384683688837, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER afterSetPrevMOP -12.45898904572035, 70.08384683688837, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER endrealtick -12.45898904572035, 70.08384683688837, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER endrealtick -12.45898904572035, 70.08384683688837, 260.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT endrealtick 0.0, 0.0, 0.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER endrealtick 0.0, 0.0, 0.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT endrealtick -12.0, 68.0, 255.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER endrealtick 0.0, 0.0, 0.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT endrealtick -0.093770332634449, 0.24353814125061035, 0.9653477072715759 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER endrealtick 0.0, 0.0, 0.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT endrealtick -0.093770332634449, 0.24353814125061035, 0.9653477072715759 2013-05-03 13:32:51 [iNFO] [sTDOUT] CLIENT calculations 0.0, 0.0, 0.0 2013-05-03 13:32:51 [iNFO] [sTDOUT] SERVER calculations 0.0, 0.0, 0.0 Anyone have any ideas why it's happening?

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.