From 0b8106ebf427f4eff68d44f855f29bef1c2257a5 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Sat, 16 Sep 2023 09:57:33 +0200 Subject: [PATCH] Make proper fix for screw attack blocks not being destroyed in their CC (#83) --- YAMS-LIB/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index c04ce4c..25fc63d 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -2670,7 +2670,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te { if (gameObject.CreationCode is null) continue; - ReplaceGMLInCode(gameObject.CreationCode, "instance_destroy()", "while (false) {}"); + ReplaceGMLInCode(gameObject.CreationCode, "global.hasScrewattack == 0", "false"); } } // A bunch of tiles in a5c13 - screw blocks before pipe hub