Skip to content

Commit 6fe3840

Browse files
using an Object for the key instead
1 parent 226392c commit 6fe3840

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/wizardlybump17/wlib/inventory/paginated/PaginatedInventoryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public PaginatedInventoryBuilder shapeReplacements(@NonNull Map<Character, ItemB
105105
return this;
106106
}
107107

108-
public @NotNull PaginatedInventoryBuilder setReplacementActionByCustomData(@NotNull String key, @Nullable Object value, @NotNull ClickAction action) {
108+
public @NotNull PaginatedInventoryBuilder setReplacementActionByCustomData(@NotNull Object key, @Nullable Object value, @NotNull ClickAction action) {
109109
for (ItemButton button : shapeReplacements.values()) {
110110
if (Objects.equals(button.getCustomData().get(key), value))
111111
button.setClickAction(action);

0 commit comments

Comments
 (0)