XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: don't default scale ship decorations to 1 (#603)

ac09fcec
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +3 -3
Modified src/services/shipCustomizationsService.ts +2 -2
@@ -93,7 +93,7 @@ export const handleSetShipDecorations = async (
93 93 Type: placedDecoration.Type,
94 94 Pos: placedDecoration.Pos,
95 95 Rot: placedDecoration.Rot,
96 Scale: placedDecoration.Scale || 1,
96 Scale: placedDecoration.Scale,
97 97 _id: placedDecoration.MoveId
98 98 };
99 99
@@ -129,7 +129,7 @@ export const handleSetShipDecorations = async (
129 129 Type: placedDecoration.Type,
130 130 Pos: placedDecoration.Pos,
131 131 Rot: placedDecoration.Rot,
132 Scale: placedDecoration.Scale || 1,
132 Scale: placedDecoration.Scale,
133 133 _id: decoId
134 134 });
135 135
Modified src/types/shipTypes.ts +1 -1
@@ -71,7 +71,7 @@ export interface IPlacedDecosDatabase {
71 71 Type: string;
72 72 Pos: [number, number, number];
73 73 Rot: [number, number, number];
74 Scale: number;
74 Scale?: number;
75 75 PictureFrameInfo?: IPictureFrameInfo;
76 76 _id: Types.ObjectId;
77 77 }