Add an optional server module for swapping items
Kobata opened this issue ยท 4 comments
The current method of simulating clicks, while very compatible with everything, has some issues with mods that make heavy use of NBT data in items.
Adding a method to directly swap the items in slots on the server will allow these items to be handled better, although the original method should still remain to allow compatibility with vanilla/bukkit servers.
Depending on what the bukkit API allows it may also be possible to create a bukkit plugin to implement this as well as a server-side mod.
As of dce1d36, the mod should no longer crash on loading on a dedicated server, and has support for detecting if the server-side module is installed.
Next piece of this would be implementing a config option to disable this in case it doesn't work, and the actual code for moving items around in inventories without going through the mouseclick layer.
This should be most of it -- need to test with a real dedicated server yet, and need to wait for one of the mods that tends to cause sorting issues to be updated so I can see if it actually fixes it.
Tested on a local dedicated server -- loaded correctly, didn't crash, worked fine.
Remaining tasks are making sure lag doesn't mess with things, that it actually improves handling of the problematic items (which means waiting for a mod with one of them to update), and probably adding a button on the settings screen to disable it more easily if it causes any issues.