Alcatergit / Hbm-s-Nuclear-Tech-GIT

My fork of the HBM's nuclear tech mod.
GNU General Public License v3.0
52 stars 42 forks source link

Bullet Persistence after unload #394

Open TH3R34LP3NGU opened 2 months ago

TH3R34LP3NGU commented 2 months ago

Entity entity_bullet seems to be persistent through server restarts/chunkloads. This causes major lagspikes and client freezing/crashing for clients on render when too many bullets have exited render distance, and are loaded in at the same time.

FBI raids (and presumably turrets etc as well) can cause this without player interaction by shooting/missing evil mobs and stacking bullets outside of loaded chunks.

Bad practice not using raycasts for bullets aside, this seems like unintended behaviour. Not sure how I'd go about fixing this without breaking snipers etc. Maybe a bullet entity cap?