9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-29 11:59:15 +00:00

Fix sprinkler option 3D-item-with-water not work.

This commit is contained in:
Catnies
2025-06-21 04:52:12 +08:00
parent 12b2fb5558
commit b9272836ad
2 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ public class SprinklerBlock extends AbstractCustomCropsBlock {
context.arg(ContextKeys.CURRENT_WATER, currentWater);
context.arg(ContextKeys.WATER_BAR, Optional.ofNullable(config.waterBar()).map(it -> it.getWaterBar(currentWater, config.storage())).orElse(""));
if (addWater(state, config, method.amountOfWater()) && !config.threeDItem().equals(config.threeDItemWithWater())) {
updateBlockAppearance(location, config, false);
updateBlockAppearance(location, config, true);
}
method.triggerActions(context);