Made inventory hide on second tap / Mobile rotation arrow

This commit is contained in:
Anuken
2019-03-09 19:43:33 -05:00
parent a0905d5695
commit 1316c9235a
4 changed files with 75 additions and 41 deletions

View File

@@ -66,6 +66,10 @@ public class BlockInventoryFragment extends Fragment{
}
public void showFor(Tile t){
if(this.tile == t.target()){
hide();
return;
}
this.tile = t.target();
if(tile == null || tile.entity == null || !tile.block().isAccessible() || tile.entity.items.total() == 0)
return;