Fixed single sided projector computation
This commit is contained in:
parent
329cb7a87c
commit
5df39f55f8
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ public class TileEntityForceFieldProjector extends TileEntityAbstractForceField
|
||||||
// compute interior fields to remove overlapping parts
|
// compute interior fields to remove overlapping parts
|
||||||
for (Map.Entry<VectorI, Boolean> entry : forceFieldSetup.shapeProvider.getVertexes(forceFieldSetup).entrySet()) {
|
for (Map.Entry<VectorI, Boolean> entry : forceFieldSetup.shapeProvider.getVertexes(forceFieldSetup).entrySet()) {
|
||||||
VectorI vPosition = entry.getKey();
|
VectorI vPosition = entry.getKey();
|
||||||
if (forceFieldSetup.isDoubleSided || vPosition.y >= yCoord) {
|
if (forceFieldSetup.isDoubleSided || vPosition.y >= 0) {
|
||||||
if ((forceFieldSetup.rotationYaw != 0) || (forceFieldSetup.rotationPitch != 0)) {
|
if ((forceFieldSetup.rotationYaw != 0) || (forceFieldSetup.rotationPitch != 0)) {
|
||||||
vPosition.rotateByAngle(forceFieldSetup.rotationYaw, forceFieldSetup.rotationPitch);
|
vPosition.rotateByAngle(forceFieldSetup.rotationYaw, forceFieldSetup.rotationPitch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue