mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
More work
This commit is contained in:
1 parent
eba5f7e356
commit
c6f3c162f9
19 files changed
+146
-163
No files matched your search
@@ -316,7 +316,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
*/
|
||||
public boolean isViableNode(BlockPos pos)
|
||||
{
|
||||
TileEntity tile = new Coord4D(pos, pointer.getWorld().provider.getDimensionId()).safeTileGet(pointer.getWorld());
|
||||
TileEntity tile = new Coord4D(pos, pointer.getWorld()).safeTileGet(pointer.getWorld());
|
||||
|
||||
if(tile == null || !tile.hasWorldObj() || tile.isInvalid())
|
||||
{
|
||||
@@ -540,7 +540,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
cache.apply((T)structureFound);
|
||||
|
||||
structureFound.inventoryID = idToUse;
|
||||
System.out.println("Success");
|
||||
System.out.println("Success " + structureFound.locations.size());
|
||||
onFormed();
|
||||
|
||||
List<IStructuralMultiblock> structures = new ArrayList<IStructuralMultiblock>();
|
||||
@@ -573,7 +573,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("No structure");
|
||||
int killed = 0;
|
||||
for(Coord4D coord : iteratedNodes)
|
||||
{
|
||||
TileEntity tile = coord.safeTileGet(pointer.getWorld());
|
||||
@@ -589,6 +589,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
|
||||
tileEntity.structure = null;
|
||||
killed++;
|
||||
}
|
||||
else if(tile instanceof IStructuralMultiblock)
|
||||
{
|
||||
@@ -596,6 +597,8 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println(killed + " KILLED");
|
||||
|
||||
for(Coord4D coord : innerNodes)
|
||||
{
|
||||
killInnerNode(coord);
|
||||
|
||||
Reference in new issue
Block a user