Сервер 1.12.2
Forge: 2855
Sponge: spongeforge-1.12.2-2838-7.1.9
Плагин отсчитывает время в чате, а в момент когда нужно удалять предметы пишет это в консоль:
[pool-3-thread-3/ERROR] [Sponge]: The Scheduler tried to run the task CatClearLag Item Remover owned by Plugin{id=catclearlag, name=CatClearLag, version=0.8, description=A plugin to assist in removing lag from your server., source=C:\Users\sernu\Desktop\MagicTech\.\mods\plugins\CatClearLag-0.8.jar}, but an error occured.
java.lang.IllegalStateException: CauseStackManager called from off main thread (current='Thread{class=class java.lang.Thread, name=pool-3-thread-3, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}', expected='Thread{class=class java.lang.Thread, name=Server thread, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}')!
at org.spongepowered.common.event.SpongeCauseStackManager.enforceMainThread(SpongeCauseStackManager.java:121) ~[SpongeCauseStackManager.class:1.12.2-2838-7.1.9]
at org.spongepowered.common.event.SpongeCauseStackManager.getCurrentCause(SpongeCauseStackManager.java:136) ~[SpongeCauseStackManager.class:1.12.2-2838-7.1.9]
at net.minecraft.entity.Entity.handler$zee000$impl$createDestructionEventOnDeath(Entity.java:7469) ~[vg.class:?]
at net.minecraft.entity.Entity.func_70106_y(Entity.java:317) ~[vg.class:?]
at net.minecraft.entity.Entity.remove(Entity.java:4851) ~[vg.class:?]
at me.time6628.clag.sponge.CatClearLag.lambda$null$5(CatClearLag.java:357) ~[CatClearLag.class:?]
at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_311]
at me.time6628.clag.sponge.CatClearLag.lambda$clearGroundItems$6(CatClearLag.java:351) ~[CatClearLag.class:?]
at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_311]
at java.util.Collections$UnmodifiableCollection.forEach(Unknown Source) ~[?:1.8.0_311]
at me.time6628.clag.sponge.CatClearLag.clearGroundItems(CatClearLag.java:347) ~[CatClearLag.class:?]
at me.time6628.clag.sponge.runnables.ItemClearer.run(ItemClearer.java:28) ~[ItemClearer.class:?]
at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139) ~[Task$Builder.class:1.12.2-2838-7.1.9]
at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:197) ~[SchedulerBase.class:1.12.2-2838-7.1.9]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_311]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_311]
В чём может быть проблема?
Перепробовал разные версии Sponge, разные версии самого плагина. Использовал альтернативные плагины. Ни один не работает. Когда приходит время удалять дроп - просто ничего не происходит