mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Continued boiler work
This commit is contained in:
1 parent
87438dcc7f
commit
155758398c
14 files changed
+105
-57
No files matched your search
@@ -550,6 +550,11 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
{
|
||||
iterated.add(pos);
|
||||
|
||||
if(!checker.shouldContinue(iterated.size()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
||||
{
|
||||
Coord4D coord = pos.getFromSide(side);
|
||||
@@ -574,8 +579,13 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
|
||||
public static interface NodeChecker
|
||||
public static abstract class NodeChecker
|
||||
{
|
||||
public boolean isValid(Coord4D coord);
|
||||
public abstract boolean isValid(Coord4D coord);
|
||||
|
||||
public boolean shouldContinue(int iterated)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user