mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Rename Turbine Rod to Turbine Rotor, work on multiblock form code
This commit is contained in:
1 parent
0c025e1033
commit
8cab2ebe8c
15 files changed
+326
-71
No files matched your search
@@ -157,7 +157,10 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
break;
|
||||
}
|
||||
else {
|
||||
innerNodes.add(new Coord4D(origX+x, origY+y, origZ+z, pointer.getWorldObj().provider.dimensionId));
|
||||
if(!isAir(origX+x, origY+y, origZ+z))
|
||||
{
|
||||
innerNodes.add(new Coord4D(origX+x, origY+y, origZ+z, pointer.getWorldObj().provider.dimensionId));
|
||||
}
|
||||
}
|
||||
|
||||
volume++;
|
||||
@@ -227,7 +230,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
|
||||
public boolean canForm(T structure)
|
||||
protected boolean canForm(T structure)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -390,6 +393,8 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
protected void onStructureCreated(T structure, int origX, int origY, int origZ, int xmin, int xmax, int ymin, int ymax, int zmin, int zmax) {}
|
||||
|
||||
public void onStructureDestroyed(T structure) {}
|
||||
|
||||
public void killInnerNode(Coord4D coord) {}
|
||||
|
||||
/**
|
||||
* Runs the protocol and updates all nodes that make a part of the multiblock.
|
||||
@@ -415,6 +420,11 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
((IStructuralMultiblock)tile).setController(null);
|
||||
}
|
||||
}
|
||||
|
||||
for(Coord4D coord : innerNodes)
|
||||
{
|
||||
killInnerNode(coord);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -517,6 +527,11 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
((IStructuralMultiblock)tile).setController(null);
|
||||
}
|
||||
}
|
||||
|
||||
for(Coord4D coord : innerNodes)
|
||||
{
|
||||
killInnerNode(coord);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user