Skip to content

Commit 2fd02a4

Browse files
committed
fix my side of reviews
1 parent a1ae9d2 commit 2fd02a4

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/main/java/gregtech/api/items/toolitem/IGTTool.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import appeng.api.implementations.items.IAEWrench;
6161
import buildcraft.api.tools.IToolWrench;
6262
import cofh.api.item.IToolHammer;
63-
import com.cleanroommc.modularui.api.drawable.IDrawable;
6463
import com.cleanroommc.modularui.api.drawable.IKey;
6564
import com.cleanroommc.modularui.api.widget.IWidget;
6665
import com.cleanroommc.modularui.api.widget.Interactable;
@@ -921,9 +920,6 @@ default void playSound(EntityPlayer player) {
921920
}
922921
}
923922

924-
IDrawable PLUS = IKey.str("+").asIcon().marginLeft(1);
925-
IDrawable MINUS = IKey.str("-").asIcon().marginLeft(1);
926-
927923
@Override
928924
default ModularPanel buildUI(HandGuiData guiData, PanelSyncManager manager) {
929925
final var usedStack = guiData.getUsedItemStack();
@@ -963,7 +959,7 @@ default Column createColumn(IntSyncValue syncValue, String lang, boolean shouldD
963959
IWidget increaseButton = new ButtonWidget<>()
964960
.size(9, 18)
965961
.background(GTGuiTextures.MC_BUTTON)
966-
.overlay(PLUS)
962+
.overlay(GTGuiTextures.PLUS)
967963
.disableHoverBackground()
968964
.onMousePressed(data -> {
969965
syncValue.setIntValue(syncValue.getIntValue() + 1, true, true);
@@ -974,7 +970,7 @@ default Column createColumn(IntSyncValue syncValue, String lang, boolean shouldD
974970
IWidget decreaseButton = new ButtonWidget<>()
975971
.size(9, 18)
976972
.background(GTGuiTextures.MC_BUTTON)
977-
.overlay(MINUS)
973+
.overlay(GTGuiTextures.MINUS)
978974
.disableHoverBackground()
979975
.onMousePressed(data -> {
980976
syncValue.setIntValue(syncValue.getIntValue() - 1, true, true);

src/main/java/gregtech/api/items/toolitem/aoe/AoESymmetrical.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ public static void decreaseColumn(NBTTagCompound tag, AoESymmetrical defaultDefi
108108

109109
public static void decreaseRow(NBTTagCompound tag, AoESymmetrical defaultDefinition) {
110110
int currentRow = getRow(tag, defaultDefinition);
111-
setRow(tag, currentRow + 1, defaultDefinition);
111+
setRow(tag, currentRow - 1, defaultDefinition);
112112
}
113113

114114
public static void decreaseLayer(NBTTagCompound tag, AoESymmetrical defaultDefinition) {
115115
int currentLayer = getLayer(tag, defaultDefinition);
116-
setLayer(tag, currentLayer + 1, defaultDefinition);
116+
setLayer(tag, currentLayer - 1, defaultDefinition);
117117
}
118118

119119
public static AoESymmetrical none() {

src/main/java/gregtech/api/mui/GTGuiTextures.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import gregtech.api.GTValues;
44

5+
import com.cleanroommc.modularui.api.drawable.IDrawable;
6+
import com.cleanroommc.modularui.api.drawable.IKey;
57
import com.cleanroommc.modularui.drawable.UITexture;
68
import org.jetbrains.annotations.ApiStatus;
79
import org.jetbrains.annotations.NotNull;
@@ -176,6 +178,9 @@ public static class IDs {
176178
public static final UITexture OREDICT_WAITING = fullImage("textures/gui/widget/ore_filter/waiting.png");
177179
public static final UITexture OREDICT_WARN = fullImage("textures/gui/widget/ore_filter/warn.png");
178180

181+
public static final IDrawable PLUS = IKey.str("+").asIcon().marginLeft(1);
182+
public static final IDrawable MINUS = IKey.str("-").asIcon().marginLeft(1);
183+
179184
public static final UITexture[] MANUAL_IO_OVERLAY_IN = slice("textures/gui/overlay/manual_io_overlay_in.png",
180185
18, 18 * 3, 18, 18, true);
181186
public static final UITexture[] MANUAL_IO_OVERLAY_OUT = slice("textures/gui/overlay/manual_io_overlay_out.png",

0 commit comments

Comments
 (0)