Fix potential issues

This commit is contained in:
modmuss50 2018-07-26 18:16:59 +01:00
parent 60873481f3
commit 8139b865a9
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ public class BlockOre2 extends Block implements IOreNameProvider {
public static final String[] ores = new String[] { "copper", "tin" }; public static final String[] ores = new String[] { "copper", "tin" };
static List<String> oreNamesList = Lists.newArrayList(ArrayUtils.arrayToLowercase(ores)); static List<String> oreNamesList = Lists.newArrayList(ArrayUtils.arrayToLowercase(ores));
public PropertyString VARIANTS = new PropertyString("type", oreNamesList); public PropertyString VARIANTS;
public BlockOre2() { public BlockOre2() {
super(Material.ROCK); super(Material.ROCK);

View file

@ -74,7 +74,7 @@ public class BlockPlayerDetector extends BlockMachineBase {
public BlockPlayerDetector() { public BlockPlayerDetector() {
super(true); super(true);
setCreativeTab(TechRebornCreativeTab.instance); setCreativeTab(TechRebornCreativeTab.instance);
this.setDefaultState(this.getDefaultState().withProperty(TYPE, "all")); this.setDefaultState(this.getStateFromMeta(0));
for (int i = 0; i < types.length; i++) { for (int i = 0; i < types.length; i++) {
ShootingStar.registerModel(new ModelCompound(ModInfo.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i])); ShootingStar.registerModel(new ModelCompound(ModInfo.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i]));
} }