Jsinco / BreweryX

An actively maintained, support given, and addon supported fork of Brewery with tons of extra features.
https://discord.gg/3FkNaNDnta
GNU General Public License v3.0
56 stars 19 forks source link

ERROR occurred when reload plugin in Folia server #37

Open 1264175987 opened 1 month ago

1264175987 commented 1 month ago

Server version : 1.21.1 Plugin version : 3.2.8

Logs:

[19:59:14 INFO]: Cirno_Saikou issued server command: /brew reload [19:59:14 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #2 failed main thread check: Cann ot read world asynchronously java.lang.Throwable: null at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:37) ~[luminol-1.21.1.jar:1.21.1-DEV-cc90 7e8] at org.bukkit.craftbukkit.block.CraftBlock.getNMS(CraftBlock.java:80) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at org.bukkit.craftbukkit.block.CraftBlock.getBlockData(CraftBlock.java:181) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at BreweryX-3.2.8.jar/com.dre.brewery.utility.LegacyUtil.litCampfire(LegacyUtil.java:202) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.utility.LegacyUtil.isCauldronHeatsource(LegacyUtil.java:192) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.BCauldron.reload(BCauldron.java:534) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.commands.subcommands.ReloadCommand.execute(ReloadCommand.java:51) ~[BreweryX-3.2.8.ja r:?] at BreweryX-3.2.8.jar/com.dre.brewery.commands.CommandManager.onCommand(CommandManager.java:68) ~[BreweryX-3.2.8.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91) ~[luminol-1 .21.1.jar:1.21.1-DEV-cc907e8] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31) ~[luminol-1.21.1.jar:1.21.1-DEV-cc 907e8] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) ~[luminol-1.21.1.jar:1.21.1-DEV-cc 907e8] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[luminol-1.21.1.jar:1.21.1 -DEV-cc907e8] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[luminol-1.21.1.jar:1.21.1-DEV-cc9 07e8] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) ~[luminol-1.21.1.jar:1.21.1 -DEV-cc907e8] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:350) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:337) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:332) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2 203) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$14(ServerGamePacketListenerImpl.java: 2177) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$tryHandleChat$17(ServerGamePacketListenerImpl.java:2341 ) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[luminol-1.21.1.jar:1.21.1-DEV-c c907e8] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[luminol-1.21.1. jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:447) ~[lumino l-1.21.1.jar:1.21.1-DEV-cc907e8] at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[luminol -1.21.1.jar:1.21.1-DEV-cc907e8] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] [19:59:14 ERROR]: Command exception: /brew reload org.bukkit.command.CommandException: Unhandled exception executing command 'brew' in plugin BreweryX v3.2.8 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91) ~[luminol-1 .21.1.jar:1.21.1-DEV-cc907e8] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31) ~[luminol-1.21.1.jar:1.21.1-DEV-cc 907e8] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) ~[luminol-1.21.1.jar:1.21.1-DEV-cc 907e8] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[luminol-1.21.1.jar:1.21.1 -DEV-cc907e8] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[luminol-1.21.1.jar:1.21.1-DEV-cc9 07e8] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) ~[luminol-1.21.1.jar:1.21.1 -DEV-cc907e8] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:350) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:337) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.commands.Commands.performCommand(Commands.java:332) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2 203) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$14(ServerGamePacketListenerImpl.java: 2177) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$tryHandleChat$17(ServerGamePacketListenerImpl.java:2341 ) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[luminol-1.21.1.jar:1.21.1-DEV-c c907e8] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[luminol-1.21.1. jar:1.21.1-DEV-cc907e8] at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:447) ~[lumino l-1.21.1.jar:1.21.1-DEV-cc907e8] at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[luminol -1.21.1.jar:1.21.1-DEV-cc907e8] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] Caused by: java.lang.IllegalStateException: Cannot read world asynchronously at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:38) ~[luminol-1.21.1.jar:1.21.1-DEV-cc90 7e8] at org.bukkit.craftbukkit.block.CraftBlock.getNMS(CraftBlock.java:80) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at org.bukkit.craftbukkit.block.CraftBlock.getBlockData(CraftBlock.java:181) ~[luminol-1.21.1.jar:1.21.1-DEV-cc907e8] at BreweryX-3.2.8.jar/com.dre.brewery.utility.LegacyUtil.litCampfire(LegacyUtil.java:202) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.utility.LegacyUtil.isCauldronHeatsource(LegacyUtil.java:192) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.BCauldron.reload(BCauldron.java:534) ~[BreweryX-3.2.8.jar:?] at BreweryX-3.2.8.jar/com.dre.brewery.commands.subcommands.ReloadCommand.execute(ReloadCommand.java:51) ~[BreweryX-3.2.8.ja r:?] at BreweryX-3.2.8.jar/com.dre.brewery.commands.CommandManager.onCommand(CommandManager.java:68) ~[BreweryX-3.2.8.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] ... 20 more