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); } }