Item duping exploit with Refined Storage Crafters
JonnyJonnster opened this issue ยท 1 comments
Hey Guys,
if you sort the contents of a crafter with speed upgrades in it, then given speed upgrades will be duped and replace the first item/pattern in the crafter.
In addition, the server will output the following error:
[16:46:59] [Server thread/FATAL]: Error executing task on Server java.lang.ClassCastException: class com.refinedmods.refinedstorage.item.UpgradeItem cannot be cast to class com.refinedmods.refinedstorage.api.autocrafting.ICraftingPatternProvider (com.refinedmods.refinedstorage.item.UpgradeItem and com.refinedmods.refinedstorage.api.autocrafting.ICraftingPatternProvider are in module [email protected] of loader 'TRANSFORMER' @4001d8c1) at edivad.extrastorage.nodes.AdvancedCrafterNetworkNode.invalidateSlot(AdvancedCrafterNetworkNode.java:150) ~[ExtraStorage-1.18.1-2.0.1.jar%23128!/:2.0.1] at edivad.extrastorage.nodes.AdvancedCrafterNetworkNode.lambda$new$0(AdvancedCrafterNetworkNode.java:120) ~[ExtraStorage-1.18.1-2.0.1.jar%23128!/:2.0.1] at com.refinedmods.refinedstorage.inventory.item.BaseItemHandler.lambda$onChanged$0(BaseItemHandler.java:61) ~[refinedstorage-1.10.0.jar%23224!/:1.10.0] at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] at com.refinedmods.refinedstorage.inventory.item.BaseItemHandler.onChanged(BaseItemHandler.java:61) ~[refinedstorage-1.10.0.jar%23224!/:1.10.0] at com.refinedmods.refinedstorage.inventory.item.BaseItemHandler.onContentsChanged(BaseItemHandler.java:56) ~[refinedstorage-1.10.0.jar%23224!/:1.10.0] at net.minecraftforge.items.ItemStackHandler.setStackInSlot(ItemStackHandler.java:60) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.items.SlotItemHandler.m_5852_(SlotItemHandler.java:61) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at cpw.mods.inventorysorter.SortingHandler.compactInventory(SortingHandler.java:161) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at cpw.mods.inventorysorter.SortingHandler.accept(SortingHandler.java:55) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at cpw.mods.inventorysorter.SortingHandler.accept(SortingHandler.java:38) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at cpw.mods.inventorysorter.Action.execute(Action.java:66) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at cpw.mods.inventorysorter.ServerHandler.lambda$onMessage$0(ServerHandler.java:40) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at net.minecraftforge.network.NetworkEvent$Context.enqueueWork(NetworkEvent.java:222) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at cpw.mods.inventorysorter.ServerHandler.onMessage(ServerHandler.java:37) ~[inventorysorter-1.18-19.0.0.jar%23156!/:19.0.0] at net.minecraftforge.network.simple.SimpleChannel$MessageBuilder.lambda$consumer$1(SimpleChannel.java:242) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.network.simple.IndexedMessageCodec.lambda$tryDecode$3(IndexedMessageCodec.java:128) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] at net.minecraftforge.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:128) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:162) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:82) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%232!/:?] at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%232!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] at net.minecraftforge.network.NetworkInstance.dispatch(NetworkInstance.java:82) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraftforge.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:89) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at java.util.Optional.map(Optional.java:260) ~[?:?] at net.minecraftforge.network.NetworkHooks.onCustomPayload(NetworkHooks.java:89) ~[forge-1.18.1-39.0.88-universal.jar%23285!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m_7423_(ServerGamePacketListenerImpl.java:1416) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:35) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:8) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:21) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:151) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:765) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:161) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:125) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:748) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:742) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:134) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:728) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:672) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258) ~[server-1.18.1-20211210.034407-srg.jar%23281!/:?] at java.lang.Thread.run(Thread.java:833) [?:?]