Skip to content

Commit

Permalink
BlockCrack: increment lastBase when it's used, not separately
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 20, 2022
1 parent 936250d commit 73046de
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,6 @@ public void execute(ScriptEntry scriptEntry) {
Location loc = location.getBlock().getLocation();
if (!progressTracker.containsKey(loc)) {
progressTracker.put(loc, new HashMap<>());
lastBase += 10;
}
Map<UUID, IntHolder> uuidInt = progressTracker.get(loc);
boolean stackVal = stack.asBoolean();
Expand All @@ -122,6 +121,7 @@ public void execute(ScriptEntry scriptEntry) {
Player playerEnt = player.getPlayerEntity();
UUID uuid = playerEnt.getUniqueId();
if (!uuidInt.containsKey(uuid)) {
lastBase += 10;
IntHolder newIntHolder = new IntHolder();
newIntHolder.theInt = lastBase;
newIntHolder.base = lastBase;
Expand Down

0 comments on commit 73046de

Please sign in to comment.