xiewuzhiying / VS-Addition

Apache License 2.0
27 stars 6 forks source link

CastClassException Crash with Deployer on Create Contraption #52

Closed EndDragon438 closed 3 weeks ago

EndDragon438 commented 4 weeks ago

This issue occurs when only Valkyrien Skies and addons are installed and no other mods

Minecraft Version

1.20.1

Mod Loader

Forge

Issue description

Throws a CastClassException when a deployer on a moving contraption stops and is fed by a hopper. create...GearshiftBlockEntity cannot be cast to vsaddition...IDeployerBehavior. (different modules??)

Issue reproduction

image

1) Put a deployer on an arm on a mechanical bearing 2) Have a hopper feeding into a block where the deployer will be after it's rotated 3) Rotate the deployer until it's rotated (90/180/270 degrees) enough to be disassembled 4) Game crash with CastClass Exception

may have to repeat a couple times, I used a mechanical bearing with a sequenced gearshift to rotate 90 degrees at a time. this will also crash the game again a couple times after loading the world, but it started working again after 2 attempts for me.

Logs

CRASH REPORT: https://bytebin.lucko.me/V6oX3QEFQE latest.log debug.log

xiewuzhiying commented 3 weeks ago

Fixed in this commit.I accidentally didn't push it as a separate commit.😥

EndDragon438 commented 3 weeks ago

@xiewuzhiying is this a typo? image