diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f23e133..0e85c1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "UltimateStacker" path: "/builds/$CI_PROJECT_PATH" - version: "1.6.9" + version: "1.7" build: stage: build diff --git a/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java b/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java index 9854afe..5a37d50 100644 --- a/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java +++ b/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java @@ -246,7 +246,7 @@ public class StackingTask extends BukkitRunnable { int maxEntityStackAmount = getEntityStackSize(livingEntity); if (stackSize <= maxEntityStackAmount) return false; - + for (int i = stackSize; i > 0; i -= maxEntityStackAmount) this.processed.add(instance.getEntityStackManager() .addStack(Methods.newEntity(livingEntity), i > maxEntityStackAmount ? maxEntityStackAmount : i).getEntityUniqueId());