Old Guns Mod

Old Guns Mod

397k Downloads

Client side crash when firing guns

SunjuhCeles opened this issue ยท 2 comments

commented

Client side crash when another player fires a gun 124 blocks away. Player firing the gun is not disconnected. This does not happen when the two players are next to each other

Steps to reproduce the behavior:

  1. Fire any gun with another player on a server
  2. Be at least 100 blocks away
  3. See error

oldgunserror

Version
[eg. v1.19-3.6.2-34]

Mod List

modlist

Additional context
There is no crash log for the issue

commented

One of my friends fixed this issue.
If i understood it correctly the mod already includes the code to stop distant clients from trying to render the bullets (which crashes the client when this chunks aren't loaded).
The error in the code is that the distance is entered wrong (the Minecraft documentation includes a wrong statement, so its not the creators fault (can't remember exactly, but something like if the value is already squared or not)).

i'll include the edited version we used (and tested successfully). Maybe the creator of the mod can later include the fix in an official version.

oldguns-MODIFIED.zip

commented

duplicate of #29