Food list not synced with latest solcarrot version
Created by: bluelightning32
Issue Description:
The solcarrot syncing doesn't work any more, because the com.cazsius.solcarrot.handler.HandlerCapability class was renamed to com.cazsius.solcarrot.handler.CapabilityHandler, but InvSync is still using the old name.
What happens:
[06:49:40] [Server thread/ERROR] [Sponge]: The Scheduler tried to run the task invsync-S-1 owned by Plugin{id=invsync, name=Inventory Sync, version=0.6.19.280-DEV, description=This plugin synchronizes the player inventory with a database, url=https://github.com/AuraDevelopmentTeam/InvSync, authors=[The_BrainStone], source=/home/minecraft/dd_ss/nodetest/server/./mods/plugins/InvSync-0.6.19.280-DEV.jar}, but an error occured.
java.lang.NoClassDefFoundError: com/cazsius/solcarrot/handler/HandlerCapability
at world.jnc.invsync.util.serializer.module.mod.SolCarrotSyncModule$Helper.deserialize(SolCarrotSyncModule.java:93) ~[SolCarrotSyncModule$Helper.class:0.6.19.280-DEV]
at world.jnc.invsync.util.serializer.module.mod.SolCarrotSyncModule$Helper.access$100(SolCarrotSyncModule.java:38) ~[SolCarrotSyncModule$Helper.class:0.6.19.280-DEV]
at world.jnc.invsync.util.serializer.module.mod.SolCarrotSyncModule.deserialize(SolCarrotSyncModule.java:34) ~[SolCarrotSyncModule.class:0.6.19.280-DEV]
at world.jnc.invsync.util.serializer.module.BaseSyncModule.deserialize(BaseSyncModule.java:86) ~[BaseSyncModule.class:0.6.19.280-DEV]
at world.jnc.invsync.util.serializer.PlayerSerializer.deserializePlayer(PlayerSerializer.java:159) ~[PlayerSerializer.class:0.6.19.280-DEV]
at world.jnc.invsync.event.PlayerEvents.loadPlayer(PlayerEvents.java:168) ~[PlayerEvents.class:0.6.19.280-DEV]
at world.jnc.invsync.event.PlayerEvents.access$200(PlayerEvents.java:34) ~[PlayerEvents.class:0.6.19.280-DEV]
at world.jnc.invsync.event.PlayerEvents$WaitingForPreviousServerToFinish.accept(PlayerEvents.java:210) ~[PlayerEvents$WaitingForPreviousServerToFinish.class:0.6.19.280-DEV]
at world.jnc.invsync.event.PlayerEvents$WaitingForPreviousServerToFinish.accept(PlayerEvents.java:180) ~[PlayerEvents$WaitingForPreviousServerToFinish.class:0.6.19.280-DEV]
at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:192) ~[SchedulerBase.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.common.scheduler.SyncScheduler.executeTaskRunnable(SyncScheduler.java:74) ~[SyncScheduler.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.common.scheduler.SchedulerBase.startTask(SchedulerBase.java:183) ~[SchedulerBase.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.common.scheduler.SchedulerBase.processTask(SchedulerBase.java:169) ~[SchedulerBase.class:1.12.2-2768-7.1.6-RC3596]
at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707) [?:1.8.0_201]
at org.spongepowered.common.scheduler.SchedulerBase.runTick(SchedulerBase.java:112) [SchedulerBase.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.common.scheduler.SyncScheduler.tick(SyncScheduler.java:47) [SyncScheduler.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.common.scheduler.SpongeScheduler.tickSyncScheduler(SpongeScheduler.java:189) [SpongeScheduler.class:1.12.2-2768-7.1.6-RC3596]
at org.spongepowered.mod.SpongeMod.onTick(SpongeMod.java:404) [SpongeMod.class:1.12.2-2768-7.1.6-RC3596]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_696_SpongeMod_onTick_ServerTickEvent.invoke(.dynamic) [?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:746) [EventBus.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:696) [EventBus.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:279) [FMLCommonHandler.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:657) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
Caused by: java.lang.ClassNotFoundException: com.cazsius.solcarrot.handler.HandlerCapability
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_201]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_201]
... 26 more
Caused by: java.lang.NullPointerException
What you expected to happen:
The simplest way to fix this is to have InvSync use CapabilityHandler and only work with recent versions of the solcarrot mod.
The alternative that I'm not in favor of is to clone the serializer so that one version works with the latest solcarrot and the other works with the old solcarrot.