Crashes server when using machinery
213LD opened this issue ยท 2 comments
I'm using this mod on my private server and all other features are working great as intended, (World Generation, tools, armors, etc. ),but whenever I tried to use any machine,(not when opening its UI, but when trying to actually using it, like using electric furnace to smelt iron powder, etc. ) the server instantly crashes(it won't crash in the same modded client when in single player games). The server-side mods are mostly the same as the client-side mods, except for some client-side exclusive mods, like minimaps, optifine, etc. And the server side is on Tech Reborn Mod version 5.0.6-build94, Minecraft 1.17.1 Fabric Loader 0.11.6 Fabric Api 0.38.2.
Here's the crash report
Description: Ticking block entity
java.lang.ClassCastException: class reborncore.common.util.RebornInventory cannot be cast to class com.javazilla.bukkitfabric.interfaces.IMixinInventory (reborncore.common.util.RebornInventory and com.javazilla.bukkitfabric.interfaces.IMixinInventory are in unnamed module of loader net.fabricmc.loader.launch.knot.KnotClassLoader @70ed52de)
at net.minecraft.class_1863.method_8132(class_1863.java:1093)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.updateCurrentRecipe(ElectricFurnaceBlockEntity.java:83)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.tick(ElectricFurnaceBlockEntity.java:212)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.tick(ElectricFurnaceBlockEntity.java:53)
at reborncore.common.BaseBlockEntityProvider.lambda$getTicker$0(BaseBlockEntityProvider.java:76)
at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:886)
at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:941)
at net.minecraft.class_1937.method_18471(class_1937.java:474)
at net.minecraft.class_3218.method_18765(class_3218.java:422)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:891)
at net.minecraft.class_3176.method_3813(class_3176.java:335)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:831)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
at java.base/java.lang.Thread.run(Thread.java:831)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.class_1863.method_8132(class_1863.java:1093)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.updateCurrentRecipe(ElectricFurnaceBlockEntity.java:83)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.tick(ElectricFurnaceBlockEntity.java:212)
at techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity.tick(ElectricFurnaceBlockEntity.java:53)
at reborncore.common.BaseBlockEntityProvider.lambda$getTicker$0(BaseBlockEntityProvider.java:76)
-- Block entity being ticked --
Details:
Name: techreborn:electric_furnace // techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity
Block: Block{techreborn:electric_furnace}[active=false,facing=west]
Block location: World: (-333,73,-366), Section: (at 3,9,2 in -21,4,-23; chunk contains blocks -336,0,-368 to -321,255,-353), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Block: Block{techreborn:electric_furnace}[active=false,facing=west]
Block location: World: (-333,73,-366), Section: (at 3,9,2 in -21,4,-23; chunk contains blocks -336,0,-368 to -321,255,-353), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Stacktrace:
at net.minecraft.class_2818$class_5563.method_31703(class_2818.java:886)
at net.minecraft.class_2818$class_5564.method_31703(class_2818.java:941)
at net.minecraft.class_1937.method_18471(class_1937.java:474)
at net.minecraft.class_3218.method_18765(class_3218.java:422)
-- Affected level --
Details:
All players: 1 total; [class_3222['213LD'/693, l='ServerLevel[world]', x=-333.44, y=71.00, z=-363.31]]
Chunk stats: 5035
Level dimension: minecraft:overworld
Level spawn location: World: (-215,63,81), Section: (at 9,15,1 in -14,3,5; chunk contains blocks -224,0,80 to -209,255,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 58670147 game time, 60768994 day time
Level name: world
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Level weather: Rain time: 46125 (now: false), thunder time: 25169 (now: false)
Known server brands: forge, vanilla, fabric, Cardboard (PaperMC+Fabric)
Level was modded: true
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:891)
at net.minecraft.class_3176.method_3813(class_3176.java:335)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:831)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
at java.base/java.lang.Thread.run(Thread.java:831)
Yes, you are right. Mixin from some other mod tries to cast any inventory to com.javazilla.bukkitfabric.interfaces.IMixinInventory. And do this inside MC methods which we can't control. Some other Mod author should check what inventory it tries to cast.
Also I think it's because of the Cardboard Mod did something that leads to the crashing because of the MixinInventory methods appeared in the crash reports which is confirmed to be in the Cardboard Mod used to bridge bukkit/spigot plugins in as fabric mods (https://www.curseforge.com/minecraft/mc-mods/cardboard, at the time I was using CardboardMod-1.17-32,)