Always use {} for control statements

This commit is contained in:
yueh
2017-07-20 21:24:58 +02:00
parent 406013142e
commit f9cad0758d
7 changed files with 32 additions and 0 deletions
@@ -149,21 +149,27 @@ public final class Registration
public static void addBlockToRegister( Block b )
{
if( blocksToRegister == null )
{
throw new IllegalStateException( "Past the registration phase already!" );
}
blocksToRegister.add( b );
}
public static void addRecipeToRegister( IRecipe r )
{
if( recipesToRegister == null )
{
throw new IllegalStateException( "Past the registration phase already!" );
}
recipesToRegister.add( r );
}
public static void addItemToRegister( Item i )
{
if( itemsToRegister == null )
{
throw new IllegalStateException( "Past the registration phase already!" );
}
itemsToRegister.add( i );
}