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

@ -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]));
}