Skip to content

Commit 05c131c

Browse files
committed
fix: fix issue with template/base
1 parent e3b71c2 commit 05c131c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_16.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private void updateGui(Inventory inv) {
196196
addition = new ItemStack(Material.AIR);
197197
}
198198

199-
if (base == null || addition.getType().isAir()) {
199+
if (base == null || base.getType().isAir()) {
200200
base = new ItemStack(Material.AIR);
201201
}
202202

src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_20.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ private void updateGui(Inventory inv) {
233233
addition = new ItemStack(Material.AIR);
234234
}
235235

236-
if (base == null || addition.getType().isAir()) {
236+
if (base == null || base.getType().isAir()) {
237237
base = new ItemStack(Material.AIR);
238238
}
239239

240-
if (template == null || addition.getType().isAir()) {
240+
if (template == null || template.getType().isAir()) {
241241
if (!needNetheriteTemplate) {
242242
template = new ItemStack(Material.NETHERITE_UPGRADE_SMITHING_TEMPLATE);
243243
} else {

0 commit comments

Comments
 (0)