Fix potential issues
This commit is contained in:
parent
60873481f3
commit
8139b865a9
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ public class BlockOre2 extends Block implements IOreNameProvider {
|
|||
|
||||
public static final String[] ores = new String[] { "copper", "tin" };
|
||||
static List<String> oreNamesList = Lists.newArrayList(ArrayUtils.arrayToLowercase(ores));
|
||||
public PropertyString VARIANTS = new PropertyString("type", oreNamesList);
|
||||
public PropertyString VARIANTS;
|
||||
|
||||
public BlockOre2() {
|
||||
super(Material.ROCK);
|
||||
|
|
|
@ -74,7 +74,7 @@ public class BlockPlayerDetector extends BlockMachineBase {
|
|||
public BlockPlayerDetector() {
|
||||
super(true);
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
this.setDefaultState(this.getDefaultState().withProperty(TYPE, "all"));
|
||||
this.setDefaultState(this.getStateFromMeta(0));
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
ShootingStar.registerModel(new ModelCompound(ModInfo.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i]));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue