Fix crash with dragonapi (#43)

This commit is contained in:
Alexdoru authored and GitHub committed 2025-11-21 13:05:53 +01:00
1 parent bff7a4b388
commit f6292eaa15
1 file changed
+13
@@ -5,6 +5,7 @@ import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -48,6 +49,18 @@ public class EventHandlerRedirect {
&& EnchantmentHelper.getEnchantmentLevel(RegisteredEnchantments.revealer.effectId, stack) > 0;
}
// this overload is called by DragonAPI
@SideOnly(Side.CLIENT)
public static void preNodeRender(TileEntity tile) {
EventHandlerRedirect.preNodeRender();
}
// this overload is called by DragonAPI
@SideOnly(Side.CLIENT)
public static void postNodeRender(TileEntity tile) {
EventHandlerRedirect.postNodeRender();
}
@SideOnly(Side.CLIENT)
public static void preNodeRender() {
EventHandlerRedirect.addGoggles(Minecraft.getMinecraft().renderViewEntity);