From db496d72d7b9f1c566d0b1c40b5a8f131caf2a78 Mon Sep 17 00:00:00 2001 From: Miepee Date: Sat, 16 Sep 2023 09:55:55 +0200 Subject: [PATCH] Make proper fix for screw attack blocks not being destroyed in their CC --- 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