Security Craft

Security Craft

53M Downloads

World/server crash when mob goes to cage trap

goteusz-maszyk opened this issue ยท 7 comments

commented

World crashes when mob, for example creeper enter a cage trap.

WARNING: world becomes useless after this little accident.

How to reproduce?

  1. Create new world (creative)
  2. Get cage trap and creeper spawn egg
  3. Place cage trap on ground and spawn creeper on it.

SecurityCraft: 1.9.0.2-beta1
Minecraft: 1.18.1
Forge: 39.0.56

https://www.toptal.com/developers/hastebin/lamajifosi.yaml <--- crash log
It looks like the error is here:

CageTrapBlockEntity cageTrap = (CageTrapBlockEntity) level.getBlockEntity(pos);

commented

Yes, will try in "clear" environment.

EDIT: tried and in "clear" it doesn't crash, it looks like conflict with other mods. I don't know why did it happened.

commented

I cannot reproduce this. The crash doesn't even make sense, because whenever a cage trap is placed, the CageTrapBlockEntity is set alongside with it, and not the OwnableBlockEntity. Thus there should never be an OwnableBlockEntity at a place where there is a cage trap. And I know how to read logs, I can find the piece of code myself, but thank you.

Are you using any other mods?

commented

sorry, my pc is too slow and it could take the whole day. But will try

commented

This is my pack

Installation: import to curseforge app (uses forge 39.0.56)

commented

Could you try a binary search to find the culprit(s), please? It could be a faulty mod, but also an incompatibility that may be fixable by us.

  1. Remove half the mods, set them aside
  2. Launch the game, see if the issue persists
    • If the issue persists, remove the next half and set it aside
    • If it does not persist, close the game, swap the installed half with the half you most recently set aside, and launch the game again
  3. Repeat until you have found the mod(s) that cause(s) the issue
commented

I installed the pack, didn't change anything about it, and wasn't able to reproduce the crash there either.

commented

Ok, I don't know why it crashed. Closing