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