Fix crash when reloading texture
This commit is contained in:
parent
7d69cab414
commit
a24ee95c4d
4 changed files with 13 additions and 11 deletions
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue