This is a pretty simple fix. The method getObject takes a string block id. It was silently throwing an exception because is surrounded by a catch-all. (not how I would do it)
All I did was use getObject correctly so that the returned block will not always be null. This means that the config for replacable blocks will actually work now.
This is a pretty simple fix. The method getObject takes a string block id. It was silently throwing an exception because is surrounded by a catch-all. (not how I would do it)
All I did was use getObject correctly so that the returned block will not always be null. This means that the config for replacable blocks will actually work now.