Memory leak bugfix and performance enhancing patches
A rather severe memory leak was uncovered when BKCommonLib was used together with Traincarts. Besides patching this bug, performance was improved in a lot of areas found through profiling the server.
Memory Usage
[Fixed] Severe memory leak when spawning and teleporting entities because of glitch in ClassHook thread local cleanup
[Fixed] Input streams were not closed when loading map texture resources
[Improved] Reduced memory consumption of the YAML API
Performance
[Improved] nextTick scheduling made more efficient with less locking
[Improved] Server item frame vanilla map refreshing is disabled when a map display is displayed on it
[Improved] Reduced overhead converting vectors to Minecraft vector types
[Improved] DataWatcher (not bound to entity) set() performance improved
[Improved] Entity location and velocity setting and getting overhead reduced