Fixed multiblock creation
This commit is contained in:
parent
f6f75e6ea1
commit
96ccdb8f58
1 changed files with 8 additions and 5 deletions
|
@ -194,6 +194,8 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
|||
structure.minLocation = Coord4D.get(tile).translate(xmin, ymin, zmin);
|
||||
structure.maxLocation = Coord4D.get(tile).translate(xmax, ymax, zmax);
|
||||
|
||||
if(structure.volLength >= 3 && structure.volHeight >= 3 && structure.volWidth >= 3)
|
||||
{
|
||||
onStructureCreated(structure, origX, origY, origZ, xmin, xmax, ymin, ymax, zmin, zmax);
|
||||
|
||||
if(structure.locations.contains(Coord4D.get(pointer)) && isCorrectCorner(Coord4D.get(tile), origX+xmin, origY+ymin, origZ+zmin))
|
||||
|
@ -203,6 +205,7 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
iteratedNodes.add(tile);
|
||||
|
||||
|
|
Loading…
Reference in a new issue