Fix crash when reloading texture

This commit is contained in:
modmuss50 2016-05-22 21:20:39 +01:00
parent 7d69cab414
commit a24ee95c4d
4 changed files with 13 additions and 11 deletions

View file

@ -118,6 +118,8 @@ public class ModItems
public static Item emptyCell;
public static DynamicCell dynamicCell;
public static final String META_PLACEHOLDER = "PLACEHOLDER_ITEM";
public static void init() throws InstantiationException, IllegalAccessException
{
gems = new ItemGems();

View file

@ -234,7 +234,7 @@ public class ModRecipes
ScrapboxList.addItemStackToList(new ItemStack(ModBlocks.rubberSapling));
for (String i : ItemDusts.types){
if(i.equals("%NULL%")){
if(i.equals(ModItems.META_PLACEHOLDER)){
continue;
}
ScrapboxList.addItemStackToList(ItemDusts.getDustByName(i));
@ -918,7 +918,7 @@ public class ModRecipes
for (String name : ItemDustsSmall.types)
{
if(name.equals("%NULL%")){
if(name.equals(ModItems.META_PLACEHOLDER)){
continue;
}
GameRegistry.addShapelessRecipe(ItemDustsSmall.getSmallDustByName(name, 4), ItemDusts.getDustByName(name));