Fix npe object for pieces

This commit is contained in:
Daniel Mills 2021-01-14 08:35:52 -05:00
parent f763cc4020
commit 36f56c2040

View File

@ -37,7 +37,7 @@ public class PlannedPiece {
this.object = structure.rotated(piece, rotation); this.object = structure.rotated(piece, rotation);
this.piece = rotation.rotateCopy(piece); this.piece = rotation.rotateCopy(piece);
this.piece.setLoadKey(piece.getLoadKey()); this.piece.setLoadKey(piece.getLoadKey());
this.object.setLoadKey(object.getLoadKey()); this.object.setLoadKey(piece.getObject());
this.connected = new KList<>(); this.connected = new KList<>();
} }