Various crashes fixed
This commit is contained in:
@@ -96,8 +96,6 @@ public class ContentDisplay{
|
||||
table.row();
|
||||
table.add(Bundles.format("text.item.fluxiness", (int) (item.fluxiness * 100)));
|
||||
table.row();
|
||||
table.add(Bundles.format("text.item.hardness", item.hardness));
|
||||
table.row();
|
||||
}
|
||||
|
||||
public static void displayLiquid(Table table, Liquid liquid){
|
||||
|
||||
@@ -89,7 +89,7 @@ public class BlockInventoryFragment extends Fragment{
|
||||
table.background("inventory");
|
||||
table.setTouchable(Touchable.enabled);
|
||||
table.update(() -> {
|
||||
if(tile == null || tile.entity == null || !tile.block().isAccessible() || tile.entity.items.total() == 0){
|
||||
if(state.is(State.menu) || tile == null || tile.entity == null || !tile.block().isAccessible() || tile.entity.items.total() == 0){
|
||||
hide();
|
||||
}else{
|
||||
if(holding && lastItem != null){
|
||||
|
||||
Reference in New Issue
Block a user