[1.18.2] Game crashed when apothecary cauldron is placed near other block entities with Rubidium installed
yanang007 opened this issue ยท 2 comments
Game version: 1.18.2
Mod version: Reliquary 1.18.2-2.0.8.1139, Rubidium 0.5.2a
Step to reproduce:
- Install both Reliquary and Rubidium.
- Get into the game and place a cauldron and a mortar(any other block with block entity also works) near each other.
- Game crashes.
Crash report:
https://paste.ubuntu.com/p/z4ZJp9ZnTH/
Possible cause is that rubidium's color blender LinearColorBlender.java will call this color sampler on registered block and its neighbouring blocks.
A possible workaround may be:
if (world.getBlockEntity(pos) instanceof ApothecaryCauldronBlockEntity cauldron) {
if (cauldron.getLiquidLevel() > 0) {
return cauldron.getColorMultiplier();
}
}
I am sure you will have to complain to Rubidium about this. They somehow made it so that the incorrect block entity (mortar one) is passed to block color handler for cauldron. Nothing I can do about that. And I am not going to implement workarounds for something that should be working correctly on their side - there's a reason block color handler is being registered for a specific block and not in general for just about anything.