From 92285033f165c112e80e56b2dc7304849c742c5e Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Sat, 11 Jan 2025 22:40:38 -0700 Subject: [PATCH] Make solvent spray can give default color. --- .../gregtechceu/gtceu/common/item/ColorSprayBehaviour.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gregtechceu/gtceu/common/item/ColorSprayBehaviour.java b/src/main/java/com/gregtechceu/gtceu/common/item/ColorSprayBehaviour.java index 48bf3de53d..c0ffbc0b2a 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/item/ColorSprayBehaviour.java +++ b/src/main/java/com/gregtechceu/gtceu/common/item/ColorSprayBehaviour.java @@ -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 {