Skip to content

Commit

Permalink
Fix solvent spray can not actually removing paint color (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince authored Jan 12, 2025
1 parent d63c022 commit 4d06fd6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ public InteractionResult onItemUseFirst(ItemStack itemStack, UseOnContext contex

private static boolean paintPaintable(IPaintable paintable, DyeColor color) {
if (color == null) {
if (paintable.getDefaultPaintingColor() == paintable.getPaintingColor()) {
if (paintable.getPaintingColor() == -1) {
return false;
}
paintable.setPaintingColor(paintable.getDefaultPaintingColor());
paintable.setPaintingColor(-1);
} else if (paintable.getPaintingColor() != color.getTextColor()) {
paintable.setPaintingColor(color.getTextColor());
} else {
Expand Down

0 comments on commit 4d06fd6

Please sign in to comment.