mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fix crash!
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user