Fixed empty inventories showing, debug blocks getting unlocked
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user