mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 03:15:08 +00:00
Added config options for base Blood Altar blocks.
Removed TileEntity check, because beacon is TileEntity.
This commit is contained in:
1 parent
1401f9512b
commit
b3c70d9d20
3 files changed
+46
-88
No files matched your search
@@ -19,9 +19,9 @@ import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.ITileEntityProvider;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
@@ -350,6 +350,15 @@ public class BloodMagicConfiguration
|
||||
new BlockStack(ModBlocks.bloodRune, 4),
|
||||
new BlockStack(ModBlocks.bloodRune, 5)
|
||||
});
|
||||
AlchemicalWizardry.specialAltarBlock = getAltarRunesForTier("specialBlocks", new BlockStack[] {
|
||||
new BlockStack(Blocks.stonebrick, 0),
|
||||
new BlockStack(Blocks.glowstone, 0),
|
||||
new BlockStack(Blocks.stonebrick, 0),
|
||||
new BlockStack(ModBlocks.largeBloodStoneBrick, 0),
|
||||
new BlockStack(Blocks.beacon, 0),
|
||||
new BlockStack(Blocks.stonebrick, 0),
|
||||
new BlockStack(ModBlocks.blockCrystal, 0)
|
||||
});
|
||||
config.save();
|
||||
}
|
||||
|
||||
@@ -506,7 +515,7 @@ public class BloodMagicConfiguration
|
||||
metadata = 0;
|
||||
}
|
||||
}
|
||||
if (block == null || block instanceof ITileEntityProvider)
|
||||
if (block == null)
|
||||
{
|
||||
property.set(defaultNames);
|
||||
return defaultValues;
|
||||
|
||||
Reference in new issue
Block a user