andersmmg / LockAndBlock

Introduces fun security features to protect your Minecraft world!
Other
0 stars 2 forks source link

Lasers generate huge amounts of packets #4

Open shurik204 opened 1 month ago

shurik204 commented 1 month ago

Due to how laser beams are implemented each active laser adds around 800 packets per second, sometimes more depending on the length. With 20 lasers running at the same time the game is unable to keep up and starts teleporting players back or disconnecting (even on an integrated server).

How to reproduce:

  1. Place multiple lasers and activate them
  2. Open debug menu (F3)
  3. Look for the "rx" value (Third row from the top on the left side)
andersmmg commented 1 month ago

I'd guess it's because it's creating the particles on the server side, which it really shouldn't. I'll try to find time soon to restructure that