Tech Reborn

Tech Reborn

30M Downloads

Crash with Plant In A Jar 2.1.2

bushtail opened this issue ยท 0 comments

commented

Describe the bug
When using rubber saplings with coolmineman's Plant In A Jar 2.1.2, clients (not the server) CTD with the Could not find registered rubber tree feature! runtime exception.

Steps to Reproduce
Steps to reproduce the behavior:

  • Put dirt in bottom slot of the jar
  • Put rubber sapling in top slot of the jar
  • CTD

Environment (please complete the following information with the version):

  • Minecraft: 1.16.5
  • Mod Loader: Fabric Loader 0.11.3

Logs
latest.log

Additional context
I'm attempting to fix this in my fork here. If you could tell me which method I have to call to register a new tree in a try/catch statement, I'd be very appreciative. My entire plan is to do the following:

  1. Detect if Tech Reborn's method is available
  2. If it is, call the method before plantinajar generates the tree using the block.generate() method
  3. If it isn't, catch and discard using some error message.