Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

4M Downloads

Crash when using IV Farming Fertilizer

CSX8600 opened this issue · 5 comments

commented

I'm starting here instead of reporting to IV Farming since the stack trace doesn't seem to be specific to IV Farming and, instead, with the fertilizeBlock method. Our server runs an older version of IV but I did try with the latest version and still had the same results. World crashes upon load, probably because it's trying to load that entity.

Here's the pastebin of the crash: https://pastebin.com/PaquV36C

commented

I think I know what's going on. I have the code set badly so it's trying to compare the item of a non-existing stack of items with dye. Since there's no item in empty slots, it crashes. Will fix.

commented

So not sure how I fixed this, but this got fixed with commit ea2b4b5.

commented

Dug into this, and I'm now not quite sure how it's happening. There's no reason that the stack should be null. Just that it should be air. Could you join the discord so I could send you some debug builds to test this?

commented

Acquired the same crash log when I tried with MTS 21.2, https://pastebin.com/FZ0THR8R

The interesting thing was that the crash only occurred after the fertilizer effector acquired a crate to pull from.

commented

Fixed in V21.3.0.