From 682fbdc9a0d0ea2dd3fd7ddbc4f0e9bb963d5b0b Mon Sep 17 00:00:00 2001 From: Modbder Date: Wed, 18 Feb 2015 18:31:30 +0300 Subject: [PATCH] 1.10 alpha --- DummyCore/Items/ItemRegistry.java | 2 +- DummyCore/Utils/MiscUtils.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DummyCore/Items/ItemRegistry.java b/DummyCore/Items/ItemRegistry.java index a1c12c3..4b1bf07 100644 --- a/DummyCore/Items/ItemRegistry.java +++ b/DummyCore/Items/ItemRegistry.java @@ -55,7 +55,7 @@ public class ItemRegistry { @Deprecated public static void registerItem(Item i, Class modClass) { - Notifier.notifyCustomMod("DummyCore", "[Warning] Mod "+Core.getModName(Core.getIdForMod(modClass))+" tries to register items in an outdated way, may cause errors!"); + //Notifier.notifyCustomMod("DummyCore", "[Warning] Mod "+Core.getModName(Core.getIdForMod(modClass))+" tries to register items in an outdated way, may cause errors!"); Side s = FMLCommonHandler.instance().getEffectiveSide(); if(s == Side.CLIENT) { diff --git a/DummyCore/Utils/MiscUtils.java b/DummyCore/Utils/MiscUtils.java index ab7c949..b750139 100644 --- a/DummyCore/Utils/MiscUtils.java +++ b/DummyCore/Utils/MiscUtils.java @@ -818,6 +818,8 @@ public class MiscUtils { @SideOnly(Side.CLIENT) public static void renderItemStack_Full(ItemStack stk,double posX, double posY, double posZ, double screenPosX, double screenPosY, double screenPosZ, float rotation, float rotationZ, float colorRed, float colorGreen, float colorBlue, float offsetX, float offsetY, float offsetZ) { + if(stk != null) + { ItemStack itemstack = stk.copy(); itemstack.stackSize = 1; //Doing this so no weird glitches occur. final ResourceLocation RES_ITEM_GLINT = new ResourceLocation("textures/misc/enchanted_item_glint.png"); @@ -951,6 +953,7 @@ public class MiscUtils { TextureUtil.func_147945_b(); } itemstack = null; //Again, there is a gc for that, but removing possible leaks is never a bad thing to do... + } } /**