Fix crash!
This commit is contained in:
parent
cb30b11d64
commit
35a83f5ffc
1 changed files with 9 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue