-
-
Notifications
You must be signed in to change notification settings - Fork 633
Open
Description
Copper Golem Listener GenericGameEvent (and maybe something else) uses org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer. This is not supported by Folia and breaks the logging of copper golems.
CoreProtect version: 23.4b
Server version (latest Folia 1.21.11 release): This server is running Folia version 1.21.11-8-ver/1.21.11@834b549 (2025-12-31T17:48:26Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
private void scheduleCloseFinalize(UUID golemId, OpenInteraction interaction, TransactionKey containerKey, int attempt) {
plugin.getServer().getScheduler().runTaskLater(plugin, () -> finalizeContainerClose(golemId, interaction, containerKey, attempt), CLOSE_FINALIZE_DELAY_TICKS);
}
private void scheduleUntrackedCopperChestCloseFinalize(UUID golemId, Location containerLocation, Material containerType, int attempt) {
plugin.getServer().getScheduler().runTaskLater(plugin, () -> finalizeUntrackedCopperChestClose(golemId, containerLocation, containerType, attempt), CLOSE_FINALIZE_DELAY_TICKS);
}
[13:13:19 ERROR]: Could not pass event GenericGameEvent to CoreProtect v23.4
java.lang.UnsupportedOperationException
at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:209) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskLater(CraftScheduler.java:173) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at CoreProtect-23.4b.jar//net.coreprotect.paper.listener.CopperGolemChestListener.scheduleCloseFinalize(CopperGolemChestListener.java:325) ~[?:?]
at CoreProtect-23.4b.jar//net.coreprotect.paper.listener.CopperGolemChestListener.handleContainerClose(CopperGolemChestListener.java:252) ~[?:?]
at CoreProtect-23.4b.jar//net.coreprotect.paper.listener.CopperGolemChestListener.onGenericGameEvent(CopperGolemChestListener.java:118) ~[?:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:71) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
at org.bukkit.event.Event.callEvent(Event.java:46) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
at net.minecraft.world.level.gameevent.GameEventDispatcher.post(GameEventDispatcher.java:29) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.level.ServerLevel.gameEvent(ServerLevel.java:1917) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.level.LevelAccessor.gameEvent(LevelAccessor.java:100) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.level.LevelAccessor.gameEvent(LevelAccessor.java:96) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.level.block.entity.ContainerOpenersCounter.decrementOpeners(ContainerOpenersCounter.java:83) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.level.block.entity.ChestBlockEntity.stopOpen(ChestBlockEntity.java:175) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.animal.golem.CopperGolemAi.lambda$onReachedTargetInteraction$2(CopperGolemAi.java:162) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.behavior.TransportItemsBetweenContainers.lambda$onTargetInteraction$3(TransportItemsBetweenContainers.java:251) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at net.minecraft.world.entity.ai.behavior.TransportItemsBetweenContainers.onTargetInteraction(TransportItemsBetweenContainers.java:251) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.behavior.TransportItemsBetweenContainers.onReachedTarget(TransportItemsBetweenContainers.java:184) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.behavior.TransportItemsBetweenContainers.tick(TransportItemsBetweenContainers.java:136) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.behavior.TransportItemsBetweenContainers.tick(TransportItemsBetweenContainers.java:41) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.behavior.Behavior.tickOrStop(Behavior.java:71) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.Brain.tickEachRunningBehavior(Brain.java:470) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.ai.Brain.tick(Brain.java:411) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.animal.golem.CopperGolem.customServerAiStep(CopperGolem.java:187) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:843) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3682) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.Mob.aiStep(Mob.java:534) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3405) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.Mob.tick(Mob.java:401) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.entity.animal.golem.CopperGolem.tick(CopperGolem.java:197) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1428) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:1480) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:870) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:605) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:851) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1929) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1744) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:429) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:485) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:480) ~[folia-1.21.11.jar:1.21.11-8-834b549]
at ca.spottedleaf.concurrentutil.scheduler.EDFSchedulerThreadPool$TickThreadRunner.run(EDFSchedulerThreadPool.java:526) ~[concurrentutil-0.0.8.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Metadata
Metadata
Assignees
Labels
No labels