diff --git a/src/main/java/org/violetmoon/zeta/registry/CreativeTabManager.java b/src/main/java/org/violetmoon/zeta/registry/CreativeTabManager.java index 7ac0928..dc03b99 100644 --- a/src/main/java/org/violetmoon/zeta/registry/CreativeTabManager.java +++ b/src/main/java/org/violetmoon/zeta/registry/CreativeTabManager.java @@ -117,7 +117,7 @@ public static void buildContents(BuildCreativeModeTabContentsEvent event) { final int logThreshold = maxFails - 10; int failedAttempts = 0; - while (failedAttempts < 100) { + while ((!front.isEmpty() && !behind.isEmpty()) || failedAttempts < 100) { if (!front.isEmpty()) { failedAttempts = addItems(event, front, false, failedAttempts > logThreshold) ? failedAttempts : failedAttempts + 1; }