Issue with ...
Killerbee47 opened this issue ยท 2 comments
Describe the bug
Players not in the immediate vincinity of a gun being fired, a cannon being fired, or rocket artillery being fired are kicked from the server.
To Reproduce
Steps to reproduce the behavior:
- Go to a server/multiplayer world
- maintain an approximately 100-200 block distance (out of render distance)
- one person fires a weapon
- other person should be kicked
Expected behavior
A clear and concise description of what you expected to happen.
Nothing should happen when a gun is fired, and definitely should not disconnect players.
Screenshots
If applicable, add screenshots to help explain your problem.
here is the kick message when you are disconnected after someone fires a gun from a distance
Mod Version
oldguns-1.19-3.6.2-34.
Mod List
oldguns-1.19-3.6.2-34.
guardvillagers-1.19-1.5.1
illagersweararmor-1.2.1
smallships-1.19-2.0.0
...
Additional context
Add any other context about the problem here.
Logs of the day that this bug was happening are attached. (The mod was removed from the server later)
If the error cannot be found within these logs, please contact me, there were like 50 logs made for 2022-10-11, this is the last one made for that day
2022-10-11-9.log
copy pasta from another issue entry (but with the same problem, sry for the spam :/ ):
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.
duplicate of #29