diff --git a/core/src/io/anuke/mindustry/core/Control.java b/core/src/io/anuke/mindustry/core/Control.java index 632c991a7f..6445d7d1f4 100644 --- a/core/src/io/anuke/mindustry/core/Control.java +++ b/core/src/io/anuke/mindustry/core/Control.java @@ -284,7 +284,7 @@ public class Control extends Module{ for(int i = 0 ; i < Recipe.all().size; i ++){ Recipe recipe = Recipe.all().get(i); - if(entity.items.hasItems(recipe.requirements)){ + if(!recipe.debugOnly && entity.items.hasItems(recipe.requirements)){ if(control.database().unlockContent(recipe)){ ui.hudfrag.showUnlock(recipe); } diff --git a/core/src/io/anuke/mindustry/ui/fragments/BlockInventoryFragment.java b/core/src/io/anuke/mindustry/ui/fragments/BlockInventoryFragment.java index a45d4252e4..84c135fed6 100644 --- a/core/src/io/anuke/mindustry/ui/fragments/BlockInventoryFragment.java +++ b/core/src/io/anuke/mindustry/ui/fragments/BlockInventoryFragment.java @@ -70,7 +70,7 @@ public class BlockInventoryFragment implements Fragment { table.background("clear"); table.setTouchable(Touchable.enabled); table.update(() -> { - if(tile == null || tile.entity == null || !tile.block().isAccessible()){ + if(tile == null || tile.entity == null || !tile.block().isAccessible() || tile.entity.items.totalItems() == 0){ hide(); }else { updateTablePosition();