hpfxd / PandaSpigot

Fork of Paper for 1.8.8 focused on improved performance and stability.
GNU General Public License v3.0
238 stars 65 forks source link

multiple patches + some cleanup around touched patches #125

Closed mechoriet closed 1 year ago

mechoriet commented 1 year ago

remove some more places where blockpositions are used often and can just be 3 int's x,y,z

mechoriet commented 1 year ago

added a better compat check since before it was checking for every packet if protocolsupport was there which showed up quite high in the hotspots so it is now a once check and save result for future use after this change I've haven't seen no dropped players and way lower cpu usage since it doesn't have to go and find the plugin in a list again and transform the name to lowercase for every check

also removed some unneeded decompile casts that where visable on structuregenerate Long.valueof( a long value) that where like 20% of the whole method that was ran