Skip to content

Commit

Permalink
and another one
Browse files Browse the repository at this point in the history
  • Loading branch information
omergunr100 committed Dec 12, 2024
1 parent 949e5a2 commit 0dc22a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private boolean tryPaintSpecialBlock(Player player, Level world, BlockPos pos, B
if (be instanceof IMachineBlockEntity machineBe && first instanceof IMachineBlockEntity og) {
MetaMachine mte = machineBe.getMetaMachine();
MetaMachine ogMte = og.getMetaMachine();
if (mte != null) {
if (mte != null && ogMte != null) {
if (mte.getPaintingColor() != this.color.getTextColor() &&
mte.getPaintingColor() == ogMte.getPaintingColor()) {
mte.setPaintingColor(this.color.getTextColor());
Expand Down

0 comments on commit 0dc22a6

Please sign in to comment.