Fixed single sided projector computation

This commit is contained in:
LemADEC 2016-06-16 01:32:05 +02:00
parent 329cb7a87c
commit 5df39f55f8

View file

@ -527,7 +527,7 @@ public class TileEntityForceFieldProjector extends TileEntityAbstractForceField
// compute interior fields to remove overlapping parts
for (Map.Entry<VectorI, Boolean> entry : forceFieldSetup.shapeProvider.getVertexes(forceFieldSetup).entrySet()) {
VectorI vPosition = entry.getKey();
if (forceFieldSetup.isDoubleSided || vPosition.y >= yCoord) {
if (forceFieldSetup.isDoubleSided || vPosition.y >= 0) {
if ((forceFieldSetup.rotationYaw != 0) || (forceFieldSetup.rotationPitch != 0)) {
vPosition.rotateByAngle(forceFieldSetup.rotationYaw, forceFieldSetup.rotationPitch);
}