Skip to content

Commit b6c45de

Browse files
committed
fix: 🐛 Fixed Apothecary Cauldron sprint particles crashing near block entities
1 parent b1b3972 commit b6c45de

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ loader_version_range=[4,)
1515
mod_id=reliquary
1616
mod_name=Reliquary Reincarnations
1717
mod_license=All Rights Reserved
18-
mod_version=2.0.79
18+
mod_version=2.0.80
1919
mod_group_id=net.p3pp3rf1y
2020
mod_authors=P3pp3rF1y
2121
mod_description=Two words: magical swag. Oh, and a gun.

src/main/java/reliquary/client/init/ModBlockColors.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ private ModBlockColors() {
1010

1111
public static void registerBlockColors(RegisterColorHandlersEvent.Block event) {
1212
event.register((state, level, pos, tintIndex) -> {
13-
if (level != null && pos != null) {
14-
ApothecaryCauldronBlockEntity cauldron = (ApothecaryCauldronBlockEntity) level.getBlockEntity(pos);
15-
if (cauldron != null && cauldron.getLiquidLevel() > 0) {
16-
return cauldron.getColorMultiplier();
17-
}
13+
if (level != null && pos != null && level.getBlockEntity(pos) instanceof ApothecaryCauldronBlockEntity cauldron && cauldron.getLiquidLevel() > 0) {
14+
return cauldron.getColorMultiplier();
1815
}
1916

2017
return -1;

0 commit comments

Comments
 (0)