mirror of
https://github.com/kami-blue/client
synced 2025-01-19 05:20:46 +00:00
parent
b3d2389ed1
commit
0f44ed6d36
@ -14,7 +14,7 @@ import me.zeroeightsix.kami.util.Wrapper;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.gui.inventory.GuiShulkerBox;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.entity.passive.AbstractHorse;
|
||||
import net.minecraftforge.client.event.*;
|
||||
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingDamageEvent;
|
||||
@ -89,7 +89,7 @@ public class ForgeEventProcessor {
|
||||
if (event.isCanceled()) return;
|
||||
|
||||
RenderGameOverlayEvent.ElementType target = RenderGameOverlayEvent.ElementType.EXPERIENCE;
|
||||
if (!Wrapper.getPlayer().isCreative() && Wrapper.getPlayer().getRidingEntity() instanceof EntityHorse)
|
||||
if (!Wrapper.getPlayer().isCreative() && Wrapper.getPlayer().getRidingEntity() instanceof AbstractHorse)
|
||||
target = RenderGameOverlayEvent.ElementType.HEALTHMOUNT;
|
||||
|
||||
if (event.getType() == target) {
|
||||
|
Loading…
Reference in New Issue
Block a user