From 0940abe98ccede6afcf6fa5e9e479746a7c08aea Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 24 Dec 2020 11:43:04 -0500 Subject: [PATCH] Fixed #4108 --- core/src/mindustry/content/UnitTypes.java | 1 - core/src/mindustry/ui/fragments/BlockInventoryFragment.java | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index c0d48c1723..9bfd066e5a 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -698,7 +698,6 @@ public class UnitTypes implements ContentList{ legExtension = -15; legBaseOffset = 10f; landShake = 1f; - legSpeed = 0.1f; legLengthScl = 0.96f; rippleScale = 2f; legSpeed = 0.2f; diff --git a/core/src/mindustry/ui/fragments/BlockInventoryFragment.java b/core/src/mindustry/ui/fragments/BlockInventoryFragment.java index 504359678e..b6b2729e2b 100644 --- a/core/src/mindustry/ui/fragments/BlockInventoryFragment.java +++ b/core/src/mindustry/ui/fragments/BlockInventoryFragment.java @@ -121,6 +121,10 @@ public class BlockInventoryFragment extends Fragment{ } if(dirty) rebuild(false); } + + if(table.getChildren().isEmpty()){ + hide(); + } } });