Fix food bar not rendering when non-living entities are mounted (#7446)

This commit is contained in:
Take Weiland 2020-11-20 19:24:43 +01:00 committed by GitHub
parent 56e538e8a9
commit 114acfca3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ public class ForgeIngameGui extends IngameGui
this.scaledHeight = this.mc.getMainWindow().getScaledHeight();
eventParent = new RenderGameOverlayEvent(mStack, partialTicks, this.mc.getMainWindow());
renderHealthMount = mc.player.getRidingEntity() instanceof LivingEntity;
renderFood = mc.player.getRidingEntity() == null;
renderFood = !renderHealthMount;
renderJumpBar = mc.player.isRidingHorse();
right_height = 39;