From 09b1e86c0cff445fc7f0cb6720d5a4f5f3357a53 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 9 Nov 2022 23:24:39 -0800 Subject: [PATCH] Fix build due to outdated PR merge lol --- TShockAPI/GetDataHandlers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 5b954cd2..9f955c95 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3511,7 +3511,7 @@ namespace TShockAPI var plr = args.Data.ReadInt16(); var thingType = args.Data.ReadInt16(); - var isKnownBoss = thingType > 0 && thingType < Main.maxNPCTypes && NPCID.Sets.MPAllowedEnemies[thingType]; + var isKnownBoss = thingType > 0 && thingType < Terraria.ID.NPCID.Count && NPCID.Sets.MPAllowedEnemies[thingType]; if ((isKnownBoss || thingType == -16) && !args.Player.HasPermission(Permissions.summonboss)) { TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandleSpawnBoss rejected boss {0} {1}", args.Player.Name, thingType));