Fix /spawnmob not spawning negative IDs again.

This commit is contained in:
MarioE 2017-06-21 01:21:32 -04:00
parent 331eeb8cec
commit 9ad63c37a6
2 changed files with 2 additions and 7 deletions

View file

@ -152,12 +152,7 @@ namespace TShockAPI
int spawnTileY;
TShock.Utils.GetRandomClearTileWithInRange(startTileX, startTileY, tileXRange, tileYRange, out spawnTileX,
out spawnTileY);
int npcid = NPC.NewNPC(spawnTileX * 16, spawnTileY * 16, type, 0);
// TODO: If special slimes break look at the git blame for this spot
// It's probably because I removed something that didn't work
Main.npc[npcid].SetDefaults(type);
NPC.NewNPC(spawnTileX * 16, spawnTileY * 16, type);
}
}