Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
AyhamAl-Ali committed Apr 5, 2024
1 parent 2750f1f commit 255696e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffReplace.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void replace(Event event, Object[] needles, Expression<?> haystackExpr)
}
}
haystackExpr.change(event, haystack, ChangeMode.SET);
} else if (replaceItems) {
} else {
for (Inventory inventory : (Inventory[]) haystack) {
for (ItemType needle : (ItemType[]) needles) {
for (Map.Entry<Integer, ? extends ItemStack> entry : inventory.all(needle.getMaterial()).entrySet()) {
Expand Down

0 comments on commit 255696e

Please sign in to comment.