Skip to content

Commit b056972

Browse files
committed
swap order of anvil checking to account
1 parent 525df4b commit b056972

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/lol/hyper/toolstats/events/AnvilEvent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ public void onAnvilEvent(PrepareAnvilEvent event) {
131131
}
132132
return;
133133
}
134+
if (toolStats.itemChecker.canGlide(clone)) {
135+
addToken(event, tokenType, "flight-time", clone);
136+
return;
137+
}
134138
if (toolStats.itemChecker.isArmor(firstSlotMaterial)) {
135139
addToken(event, tokenType, "damage-taken", clone);
136140
return;
@@ -169,10 +173,6 @@ public void onAnvilEvent(PrepareAnvilEvent event) {
169173
}
170174
return;
171175
}
172-
if (toolStats.itemChecker.canGlide(clone)) {
173-
addToken(event, tokenType, "flight-time", clone);
174-
return;
175-
}
176176
if (firstSlotMaterial == Material.FISHING_ROD) {
177177
addToken(event, tokenType, "fish-caught", clone);
178178
}

0 commit comments

Comments
 (0)