Merge pull request #1299 from thatsIch/e-qol-exception-messages
Improved exceptions
This commit is contained in:
@@ -54,7 +54,8 @@ public enum PartRegistry
|
||||
return pr.name;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException( "Invalid PartName" );
|
||||
|
||||
throw new IllegalStateException( "Invalid PartName" );
|
||||
}
|
||||
|
||||
public static TMultiPart getPartByBlock( Block block, int meta )
|
||||
@@ -80,7 +81,7 @@ public enum PartRegistry
|
||||
}
|
||||
catch( Throwable t )
|
||||
{
|
||||
throw new RuntimeException( t );
|
||||
throw new IllegalStateException( t );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user