diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 1f041e4a..bd09f992 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3632,6 +3632,12 @@ namespace TShockAPI return true; } + if (type == 4 && (id < 0 || id > Main.npc.Length)) + { + //Type == 4 -> 'BigMimicSpawnSmoke'. This access Main.npc without any bounds checking on Terraria's side. + return true; + } + return false; }