Wireless Crafting Terminal

Wireless Crafting Terminal

48M Downloads

Shift-Clicking an ItemStack into a Wireless Crafting Terminal Crashes

FoxMcloud5655 opened this issue ยท 0 comments

commented

When attempting to shift-click a stack of items into an ME System from a Wireless Crafting Terminal, the game crashes with a fatal error. I currently have VanillaFix installed, so the game continues to run anyways, but any terminal won't let users see any items inside, though crafting (both from JEI and normally) will still pull items from the network and inserting items works as well.

I have done extensive testing on this and have figured out that this only happens when you have the Wireless Ultimate Terminal with the fluid terminal installed. You select the Wireless Fluid Terminal, (I then put this into a baubles slot; not sure if this changes anything) then open up Wireless Crafting Terminal GUI with a hotkey with the item still saying that it's in Wireless Fluid Terminal mode and attempt to shift-click an item into the ME System. This completely explains the error we get below.

java.util.concurrent.ExecutionException: java.lang.ClassCastException: appeng.util.item.AEItemStack cannot be cast to appeng.api.storage.data.IAEFluidStack
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_292]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_292]
	at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:839) [MinecraftServer.class:?]
	at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:467) [nz.class:?]
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:776) [MinecraftServer.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.ClassCastException: appeng.util.item.AEItemStack cannot be cast to appeng.api.storage.data.IAEFluidStack
	at appeng.fluids.util.FluidList.findPrecise(FluidList.java:33) ~[FluidList.class:?]
	at appeng.me.storage.BasicCellInventory.extractItems(BasicCellInventory.java:221) ~[BasicCellInventory.class:?]
	at appeng.me.storage.MEPassThrough.extractItems(MEPassThrough.java:63) ~[MEPassThrough.class:?]
	at appeng.me.storage.MEInventoryHandler.extractItems(MEInventoryHandler.java:117) ~[MEInventoryHandler.class:?]
	at appeng.me.storage.MEInventoryHandler.extractItems(MEInventoryHandler.java:117) ~[MEInventoryHandler.class:?]
	at appeng.me.storage.DriveWatcher.extractItems(DriveWatcher.java:77) ~[DriveWatcher.class:?]
	at appeng.me.storage.NetworkInventoryHandler.injectItems(NetworkInventoryHandler.java:99) ~[NetworkInventoryHandler.class:?]
	at appeng.me.cache.NetworkMonitor.injectItems(NetworkMonitor.java:157) ~[NetworkMonitor.class:?]
	at p455w0rd.ae2wtlib.helpers.WTGuiObjectImpl.injectItems(WTGuiObjectImpl.java:203) ~[WTGuiObjectImpl.class:?]
	at appeng.util.Platform.poweredInsert(Platform.java:1229) ~[Platform.class:?]
	at appeng.util.Platform.poweredInsert(Platform.java:1218) ~[Platform.class:?]
	at p455w0rd.wct.container.ContainerWCT.shiftStoreItem(ContainerWCT.java:1143) ~[ContainerWCT.class:?]
	at p455w0rd.wct.container.ContainerWCT.transferStackInSlot(ContainerWCT.java:989) ~[ContainerWCT.class:?]
	at net.minecraft.inventory.Container.slotClick(Container.java:384) ~[afr.class:?]
	at p455w0rd.wct.container.ContainerWCT.slotClick(ContainerWCT.java:1154) ~[ContainerWCT.class:?]
	at net.minecraft.network.NetHandlerPlayServer.processClickWindow(NetHandlerPlayServer.java:2135) ~[pa.class:?]
	at net.minecraft.network.play.client.CPacketClickWindow.processPacket(CPacketClickWindow.java:38) ~[lf.class:?]
	at net.minecraft.network.play.client.CPacketClickWindow.processPacket(CPacketClickWindow.java:12) ~[lf.class:?]
	at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:16) ~[hv.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_292]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_292]
	at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]

So, either the Wireless Ultimate Terminal needs to switch itself into Wireless Crafting Terminal mode when the hotkey is pressed, or the appropriate terminal needs to pop up according to what the currently selected terminal is on the item when the hotkey is pressed.