
In CC:Tweaked, calling getItemDetail on a potato cannon crashes the server
jf908 opened this issue ยท 0 comments
Describe the Bug
Since the isBarVisible is client-only but is required on the server by CC:Tweaked for getItemDetail, it crashes the server.
[18:35:01] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.NoSuchMethodError: 'boolean com.simibubi.create.content.curiosities.armor.BackTankUtil.isBarVisible(net.minecraft.world.item.ItemStack, int)'
at com.simibubi.create.content.curiosities.weapons.PotatoCannonItem.m_142522_(PotatoCannonItem.java:86) ~[create-mc1.18.2_v0.5.0c.jar%2354!/:mc1.18.2_v0.5.0c] {re:classloading,pl:runtimedistcleaner:A}
at dan200.computercraft.shared.peripheral.generic.data.ItemData.fill(ItemData.java:63) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.shared.peripheral.generic.methods.InventoryMethods.getItemDetail(InventoryMethods.java:151) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.shared.peripheral.generic.methods.InventoryMethods$cc$getItemDetail3.apply(CC generated method) ~[?:?] {re:classloading,re:classloading}
at dan200.computercraft.core.asm.PeripheralMethod.lambda$static$0(PeripheralMethod.java:21) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.core.lua.LuaContext.lambda$issueMainThreadTask$0(LuaContext.java:34) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.core.computer.MainThreadExecutor.execute(MainThreadExecutor.java:143) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.core.computer.MainThread.executePendingTasks(MainThread.java:157) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at dan200.computercraft.shared.CommonHooks.onServerTick(CommonHooks.java:60) ~[cc-tweaked-1.18.2-1.100.9.jar%2346!/:1.100.9] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_137_CommonHooks_onServerTick_ServerTickEvent.invoke(.dynamic) ~[?:?] {}
...
Reproduction Steps
- Open a dedicated minecraft server
- Put a potato cannon in a turtle
- Run
lua
- Run
turtle.getItemDetail()
Expected Result
No crash
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.0c
Minecraft Version
1.18.2
Forge Version
40.1.73
Other Mods
CC:Tweaked
Additional Context
No response