Direwolf20-MC / BuildingGadgets2

A recreation of my very first mod - Building Gadgets. This time with less DireCode. Or more, depending on how you look at it....
MIT License
24 stars 9 forks source link

Pasting Growthcraft grapes crashes the game and corrupts the world file #63

Closed PsiQss closed 8 months ago

PsiQss commented 9 months ago

Building Gadgets Version Building Gadgets 2 1.0.6

Describe the bug After pasting Growthcraft grape crops in Creative Mode the game crashes and corrupts the save file. Happens with both copy/paste and cut/paste gadget.

To Reproduce Steps to reproduce the behavior:

  1. Be in creative mode
  2. Plant and grow Growthcraft's grapes.
  3. Copy/Cut the grape crop blocks.
  4. Paste copied blocks

I'm assuming it is not possible to reproduce in survival, as the crop blocks cannot be present in the inventory (and therefore would not be placed)

Expected behavior The grape crop blocks should not have been copied. After some digging in the code I see that there is a deny list being prepared, albeit statically. Maybe there should be a tag that could be used in other mods to blacklist them?

Log Files crash-2023-12-22_00.17.24-server.txt

Direwolf20-MC commented 8 months ago

Looks like growthcraft relies on the property of 'age' for its rendering, and thats whats throwing it off :). For now I agree, try not to copy those crops, and I'll see if theres a way to fix the crash. Thanks!