Fix crash!

This commit is contained in:
Aidan C. Brady committed 2013-11-01 14:04:05 -04:00
1 parent cb30b11d64
commit 35a83f5ffc
1 file changed
+9 -1
@@ -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()