Fix rotating speed modifier

This commit is contained in:
2024-09-29 01:18:31 +02:00
parent 34ad8bef4d
commit f0e4a2d64b

View File

@@ -509,7 +509,7 @@ namespace InfectionFreeZone {
}
[HarmonyTranspiler]
[HarmonyPatch(typeof(PlaceableObject), "RotateRight")]
[HarmonyPatch(typeof(PlaceObjectsInSingleLineCursor), "RotateRight")]
public static IEnumerable<CodeInstruction> PostfixRotateRight(IEnumerable<CodeInstruction> instructions) {
var codes = new List<CodeInstruction>(instructions);
for (var i = 0; i < codes.Count; i++) {
@@ -531,7 +531,7 @@ namespace InfectionFreeZone {
}
[HarmonyTranspiler]
[HarmonyPatch(typeof(PlaceableObject), "RotateLeft")]
[HarmonyPatch(typeof(PlaceObjectsInSingleLineCursor), "RotateLeft")]
public static IEnumerable<CodeInstruction> PostfixRotateLeft(IEnumerable<CodeInstruction> instructions) {
var codes = new List<CodeInstruction>(instructions);
for (var i = 0; i < codes.Count; i++) {