From c3331d899a210a85225f5e6af1cbfea5d37d6c5d Mon Sep 17 00:00:00 2001 From: TudbuT Date: Thu, 13 Jun 2024 12:47:18 +0200 Subject: [PATCH] add item frames to NoRender --- .../de/com/baseband/client/feature/render/NoRender.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Client/src/main/java/de/com/baseband/client/feature/render/NoRender.java b/Client/src/main/java/de/com/baseband/client/feature/render/NoRender.java index 244cf83..6c11899 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/render/NoRender.java +++ b/Client/src/main/java/de/com/baseband/client/feature/render/NoRender.java @@ -4,6 +4,7 @@ import de.com.baseband.client.feature.Feature; import de.com.baseband.client.feature.category.Render; import de.com.baseband.client.registry.annotation.Config; import net.minecraftforge.client.event.RenderBlockOverlayEvent; +import net.minecraftforge.client.event.RenderItemInFrameEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Render @@ -29,6 +30,8 @@ public class NoRender extends Feature { @Config("Toast") public boolean toast; + @Config("ItemFrame") + public boolean itemFrame; @SubscribeEvent @@ -37,6 +40,10 @@ public class NoRender extends Feature { event.setCanceled(true); if (block && event.getOverlayType() == RenderBlockOverlayEvent.OverlayType.BLOCK) event.setCanceled(true); + } + @SubscribeEvent + public void renderEntityEvent(RenderItemInFrameEvent event) { + event.setCanceled(itemFrame); } }