Skip to content

Commit 54e40b9

Browse files
committed
マップ車両のみが選択されている時はVehicleOrientationControllerでのTryGetVehicleMapもスキップする
1 parent 05a996d commit 54e40b9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎About/About.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
このModはVehicle Frameworkを使用した車両に、床や建築物を建設可能なマップを載せるためのフレームワークMODです。
88
這個模組是 **Vehicle Framework** 的擴展,讓車輛能夠變成一張可建造的地圖,你可以在上面蓋地板、建築,打造屬於自己的移動基地!
99
</description>
10-
<modVersion IgnoreIfNoMatchingField="True">1.6.187</modVersion>
10+
<modVersion IgnoreIfNoMatchingField="True">1.6.188</modVersion>
1111
<url>https://github.com/oelsart/VehicleMapFramework</url>
1212
<supportedVersions>
1313
<li>1.5</li>

‎Source/VehicleMapFramework/VMF_HarmonyPatches/Patches_VehicleFramework.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,9 @@ public static class Patch_VehiclePath_DrawPath
10321032
[PatchLevel(Level.Safe)]
10331033
public static class Patch_VehicleOrientationController_Init
10341034
{
1035-
public static void Postfix(ref IntVec3 ___start, ref IntVec3 ___end)
1035+
public static void Postfix(List<VehiclePawn> vehicles, ref IntVec3 ___start, ref IntVec3 ___end)
10361036
{
1037+
if (vehicles.All(p => p is VehiclePawnWithMap)) return;
10371038
if (UI.MouseMapPosition().TryGetVehicleMap(Find.CurrentMap, out var vehicle, VehicleMapFlag.None))
10381039
{
10391040
___start = ___start.ToBaseMapCoord(vehicle);

0 commit comments

Comments
 (0)