Skip to content

Commit

Permalink
Allow name remover to remove muffler upgrades (#3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Jan 10, 2025
1 parent d4197ea commit 3b17b70
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public int checkRecipe() {
boolean removeRepair = false;
boolean removeDye = false;
boolean removeSpray = false;
boolean removeMuffler = false;
boolean removeCovers = false;
switch (circuitSetting) {
case 1:
Expand All @@ -131,6 +132,9 @@ public int checkRecipe() {
case 6:
removeSpray = true;
break;
case 7:
removeMuffler = true;
break;
case 24:
removeCovers = true;
default:
Expand All @@ -140,6 +144,7 @@ public int checkRecipe() {
removeRepair = true;
removeDye = true;
removeSpray = true;
removeMuffler = true;
}
if (removeName && nbt.hasKey("display")) {
nbt.getCompoundTag("display")
Expand All @@ -161,6 +166,7 @@ public int checkRecipe() {
}
}
if (removeSpray) removeTag(nbt, "mColor");
if (removeMuffler) removeTag(nbt, "mMuffler");
removeTag(nbt, "mTargetStackSize"); // MTEBuffer
removeTag(nbt, "mOutputFluid"); // MTEDigitalTankBase
removeTag(nbt, "mVoidOverflow"); // MTEDigitalTankBase & MTEQuantumChest
Expand Down Expand Up @@ -216,6 +222,7 @@ public String[] getDescription() {
description.add(BOLD + "Circuit 4:" + RESET + " Remove Anvil repair tag");
description.add(BOLD + "Circuit 5:" + RESET + " Remove Dye from Leather armor");
description.add(BOLD + "Circuit 6:" + RESET + " Remove Spray color from GT items");
description.add(BOLD + "Circuit 7:" + RESET + " Remove Muffler Upgrade from GT machines");
description.add(
BOLD + "Circuit 24:"
+ RESET
Expand Down

0 comments on commit 3b17b70

Please sign in to comment.