Update Bouncer.cs

This commit is contained in:
tru321 2021-12-08 11:48:55 +08:00 committed by GitHub
parent d4befdeff0
commit 26a46ef40c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1860,7 +1860,7 @@ namespace TShockAPI
// if released npc not from its item (from crafted packet)
// e.g. using bunny item to release golden bunny
if(args.Player.TPlayer.lastVisualizedSelectedItem.makeNPC != type)
if(args.Player.TPlayer.lastVisualizedSelectedItem.makeNPC != type && args.Player.TPlayer.lastVisualizedSelectedItem.placeStyle != style)
{
TShock.Log.ConsoleDebug("Bouncer / OnReleaseNPC rejected npc release from {0}", args.Player.Name);
args.Player.Kick("Trying to release different critter exploit!", true);