Puts everywhere brackets
This commit is contained in:
@@ -62,10 +62,14 @@ public class TickTracker implements Comparable<TickTracker>
|
||||
this.current_rate = rate;
|
||||
|
||||
if( this.current_rate < this.request.minTickRate )
|
||||
{
|
||||
this.current_rate = this.request.minTickRate;
|
||||
}
|
||||
|
||||
if( this.current_rate > this.request.maxTickRate )
|
||||
{
|
||||
this.current_rate = this.request.maxTickRate;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -93,6 +97,8 @@ public class TickTracker implements Comparable<TickTracker>
|
||||
|
||||
DimensionalCoord dc = this.node.getGridBlock().getLocation();
|
||||
if( dc != null )
|
||||
{
|
||||
crashreportcategory.addCrashSection( "Location", dc );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,9 @@ public class TunnelCollection<T extends PartP2PTunnel> implements Iterable<T>
|
||||
public Iterator<T> iterator()
|
||||
{
|
||||
if( this.tunnelSources == null )
|
||||
{
|
||||
return new NullIterator<T>();
|
||||
}
|
||||
return new TunnelIterator<T>( this.tunnelSources, this.clz );
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,9 @@ public class TunnelIterator<T extends PartP2PTunnel> implements Iterator<T>
|
||||
{
|
||||
this.Next = this.wrapped.next();
|
||||
if( !this.targetType.isInstance( this.Next ) )
|
||||
{
|
||||
this.Next = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user