MrCrayfish/GoldenHopper

Game crashes when golden hopper inserts into tile entities from certain other mods.

Closed this issue · 2 comments

The game crashes when using a golden hopper to insert items into tile entities from several other mods. The game crashed when attempting to insert anything into a barrel from Metal Barrels (https://www.curseforge.com/minecraft/mc-mods/metal-barrels) using a golden hopper, and also crashed when attempting to insert a disk into a Refined Storage disk drive.
The specific error is

The game crashed whilst ticking block entity
Error: java.lang.ClassCastException: com.raoulvdberge.refinedstorage.tile.DiskDriveTile cannot be cast to net.minecraft.inventory.IInventory

Here are crash logs for both.
crash-2020-04-20_15.52.55-server.txt
crash-2020-04-20_16.00.59-server.txt

It seem like items can be removed from the offending inventories using golden hoppers without issue. Golden hoppers are also able to insert items into machines from Silent's Mechanisms (https://www.curseforge.com/minecraft/mc-mods/silents-mechanisms) without any apparent issue.

Fixed in bbc2d9d