diff --git a/21g30t1e75.js b/21g30t1e75.js index 41a80da..218b50b 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1240,6 +1240,14 @@ GameLib.CustomCode.prototype.restore = function() { } clone.backupMesh.visible = true; + + clone.backupMesh.position.x = clone.position.x * GameLib.CustomCode.BODY_SCALE_X + GameLib.CustomCode.GRID_OFFSET_X; + clone.backupMesh.position.y = clone.position.y * GameLib.CustomCode.BODY_SCALE_Y + GameLib.CustomCode.GRID_OFFSET_Y; + clone.backupMesh.position.z = 0.1; + + clone.backupMesh.rotation.z = clone.orientation * Math.PI / 2; + clone.backupMesh.updateInstance('rotation'); + clone.backupMesh.updateInstance('visible'); clone.mesh = this.createGameMesh(this.materialBreadCorner);