Fix crash!

This commit is contained in:
Aidan C. Brady 2013-11-01 14:04:05 -04:00
parent cb30b11d64
commit 35a83f5ffc

View file

@ -902,7 +902,15 @@ public class BlockMachine extends BlockContainer implements ISpecialBounds
public static MachineType getFromMetadata(int meta)
{
return values()[meta];
for(MachineType type : values())
{
if(type.meta == meta)
{
return type;
}
}
return null;
}
public TileEntity create()