froobynooby / ViewDistanceTweaks

Paper plugin that allows for dynamic simulation and view distances.
https://ci.froobworld.com/job/ViewDistanceTweaks/
MIT License
89 stars 17 forks source link

Fix version checker for latest Paper builds #61

Closed jehendeoff closed 2 months ago

jehendeoff commented 2 months ago

Changed NMSUtils to not use Bukkit.getServer().getClass().getPackage().getName() which is removed in the newer build of paper.

Only tested in 1.20.6, I haven't tested every functionality, only if it boot and i can change the render distancee

froobynooby commented 2 months ago

This is fine as is, but not all that is needed to update the plugin for 1.20.6. The NMS parts of the plugin need to be updated for Paper's move to Mojang mappings, and Spigot will need to be handled separately