//in Terraria.WorldGen.KillWall add if(!WallLoader.KillSound(i, j, tile.wall)) { } to beginning of // if/else chain for playing sounds, and turn first if into else if internal static bool KillSound(int i, int j, int type) { foreach (GlobalWall globalWall in globalWalls) { if (!globalWall.KillSound(i, j, type)) { return(false); } } ModWall modWall = GetWall(type); if (modWall != null) { if (!modWall.KillSound(i, j)) { return(false); } Main.PlaySound(modWall.soundType, i * 16, j * 16, modWall.soundStyle); return(false); } return(true); }
//in Terraria.WorldGen.KillWall add if(!WallLoader.KillSound(i, j, tile.wall)) { } to beginning of // if/else chain for playing sounds, and turn first if into else if public static bool KillSound(int i, int j, int type) { foreach (var hook in HookKillSound) { if (!hook(i, j, type)) { return(false); } } ModWall modWall = GetWall(type); if (modWall != null) { if (!modWall.KillSound(i, j)) { return(false); } Main.PlaySound(modWall.soundType, i * 16, j * 16, modWall.soundStyle); return(false); } return(true); }