Skip to content

Commit

Permalink
1.5.61
Browse files Browse the repository at this point in the history
Removed debug message and increased BlobInventory performance.
  • Loading branch information
anjoismysign committed Nov 27, 2022
1 parent 5284f46 commit d6d90e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ public void setButton(int slot, ItemStack itemStack) {

public void refillButton(String key) {
for (Integer i : getSlots(key)) {
setButton(i, getDefaultButton(key));
break;
setButton(i, getButton(i));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public VariableSelector(BlobInventory blobInventory, UUID builderId,
@Override
public void loadDefaultButtons() {
setDefaultButtons(new HashMap<>());
addDefaultButtons("White-Background");
}

public void loadPage(int page, boolean refill) {
Expand All @@ -57,7 +56,6 @@ public void loadPage(int page, boolean refill) {
refillButton("White-Background");
values.clear();
VariableValue[] values = filler.page(page, itemsPerPage);
getPlayer().sendMessage("length: " + values.length);
for (int i = 0; i < values.length; i++) {
setValue(i, values[i]);
}
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/us/mytheria/bloblib/utilities/Debug.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package us.mytheria.bloblib.utilities;

import org.bukkit.Bukkit;

public class Debug {
public static void debug(String message) {
Bukkit.getLogger().severe(message);
}
}

0 comments on commit d6d90e3

Please sign in to comment.