IzzelAliz / Arclight

A Bukkit(1.19/1.20) server implementation in modding environment using Mixin. ⚡
GNU General Public License v3.0
1.59k stars 234 forks source link

Civs城镇插件后台报错刷屏 #213

Closed 3439798258 closed 3 years ago

3439798258 commented 3 years ago

我正在运行

重现步骤

  1. 安装civs城镇插件
  2. 进入服务器后,放置一些mod方块在城镇插件的所属领域内互动
  3. 开始刷屏报错

可在 Forge 复现 [是]

可在 Spigot 复现 [是]

报错信息

[错误日志] [Minecraft/]: Could not pass event InventoryClickEvent to Civs v1.7.6 org.bukkit.event.EventException: null at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[arclight:arclight-1.16.5-1.0.15-7963742] at net.minecraft.network.play.ServerPlayNetHandler.func_147351_a(ServerPlayNetHandlerMixin.java:2941) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:34) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:12) ~[?:?] at net.minecraft.network.PacketThreadUtil.md7e3977$lambda$checkThreadAndEnqueue$0$0(PacketThreadUtilMixin.java:536) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:734) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:159) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServerMixin.java:717) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServerMixin.java:711) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServerMixin.java:696) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802v(MinecraftServerMixin.java:1903) ~[?:?] at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServerMixin.java:232) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.ClassCastException: class io.izzel.arclight.common.mod.server.block.ArclightTileInventory cannot be cast to class org.bukkit.block.Chest (io.izzel.arclight.common.mod.server.block.ArclightTileInventory and org.bukkit.block.Chest are in unnamed module of loader cpw.mods.modlauncher.TransformingClassLoader @e26a3df) at org.redcastlemedia.multitallented.civs.civilians.CivilianListener.onCivilianClickItem(CivilianListener.java:764) ~[?:?] ... 20 more

[Server thread/ERROR] [Minecraft/]: Could not pass event InventoryClickEvent to Civs v1.7.6 org.bukkit.event.EventException: null at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[arclight:arclight-1.16.5-1.0.15-7963742] at net.minecraft.network.play.ServerPlayNetHandler.func_147351_a(ServerPlayNetHandlerMixin.java:2941) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:34) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:12) ~[?:?] at net.minecraft.network.PacketThreadUtil.mdbd90f6$lambda$checkThreadAndEnqueue$0$0(PacketThreadUtilMixin.java:536) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:734) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:159) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServerMixin.java:717) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServerMixin.java:711) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServerMixin.java:696) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802v(MinecraftServerMixin.java:1903) ~[?:?] at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServerMixin.java:232) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.ClassCastException: class io.izzel.arclight.common.mod.server.block.ArclightTileInventory cannot be cast to class org.bukkit.block.Chest (io.izzel.arclight.common.mod.server.block.ArclightTileInventory and org.bukkit.block.Chest are in unnamed module of loader cpw.mods.modlauncher.TransformingClassLoader @200d1a3d) at org.redcastlemedia.multitallented.civs.civilians.CivilianListener.onCivilianClickItem(CivilianListener.java:764) ~[?:?] ... 20 more

[Server thread/ERROR] [Minecraft/]: Could not pass event InventoryClickEvent to Civs v1.7.6 org.bukkit.event.EventException: null at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[arclight:arclight-1.16.5-1.0.15-7963742] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[arclight:arclight-1.16.5-1.0.15-7963742] at net.minecraft.network.play.ServerPlayNetHandler.func_147351_a(ServerPlayNetHandlerMixin.java:2941) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:34) ~[?:?] at net.minecraft.network.play.client.CClickWindowPacket.func_148833_a(CClickWindowPacket.java:12) ~[?:?] at net.minecraft.network.PacketThreadUtil.mdbd90f6$lambda$checkThreadAndEnqueue$0$0(PacketThreadUtilMixin.java:536) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:734) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServerMixin.java:159) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServerMixin.java:717) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServerMixin.java:711) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServerMixin.java:696) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802v(MinecraftServerMixin.java:1903) ~[?:?] at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServerMixin.java:232) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?]

IzzelAliz commented 3 years ago

请提供是与什么方块互动造成的错误

以及这个东西我很可能无法修复,建议与插件开发者联系