mcenderdragon / Futurepack-API

A small Api for the Futurepack
21 stars 4 forks source link

Miner attached to not-a-Drone Station #969

Open Yirok42 opened 1 year ago

Yirok42 commented 1 year ago

This is a user error but something that can happen and perhaps a different result should be.

1 Have a Drone Station with a Construction Box - Miner attached. 2 Pick up the Drone Station leaving behind the Miner. 3 Put a storage item like Large Wardrobe or Chest. 4 Nothing bad happens. 5 But if an item is dropped close enough to the Miner to be absorbed, world crash (see below) but since the action which causes the crash is not automatic, the world can be reloaded.

I did it twice with a Large Wardrobe and then made a backup of the world, and tried it with Sand block and then Chest. With Sand block, nothing happened and the dropped items remained dropped. With the Chest the crash occurred and I believe re-crashed when it reloaded because the dropped item was still there. I am not sure why the dropped item was not still there when the "I am not a Drone Station block" was a Wardrobe but it wasn't. Hmm. Perhaps because I was standing closer when I was using the Wardrobe.

I expect the correct action to prevent this is 'do not do that' but after this, it could be that when the Drone Station is picked up, that the Miners attached should also be dropped.

java.lang.ClassCastException: class futurepack.common.block.inventory.TileEntityWardrobe$Large cannot be cast to class futurepack.common.block.inventory.TileEntityDroneStation (futurepack.common.block.inventory.TileEntityWardrobe$Large and futurepack.common.block.inventory.TileEntityDroneStation are in module futurepack@033.0.7482 of loader 'TRANSFORMER' @12d5c30e)

java.lang.ClassCastException: class net.minecraft.world.level.block.entity.ChestBlockEntity cannot be cast to class futurepack.common.block.inventory.TileEntityDroneStation (net.minecraft.world.level.block.entity.ChestBlockEntity is in module minecraft@1.18.2 of loader 'TRANSFORMER' @12d5c30e; futurepack.common.block.inventory.TileEntityDroneStation is in module futurepack@033.0.7482 of loader 'TRANSFORMER' @12d5c30e)

Minecraft Version: 1.18.2
Minecraft Version ID: 1.18.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.2, Oracle Corporation
Mod List: 
    client-1.18.2-20220404.173914-srg.jar
    JustEnoughResources-1.18.2-0.14.1.171.jar
    forge-1.18.2-40.1.84-universal.jar
    torohealth-1.18-forge-2.jar
    Futurepack-1.18.2-33.0.7482.jar
    lootr-1.18.2-0.2.21.58.jar
    journeymap-1.18.2-5.8.5-forge.jar
    jei-1.18.2-9.7.1.255.jar
FML: 40.1
Forge: net.minecraftforge:40.1.84