Update Bouncer.cs
This commit is contained in:
parent
d4befdeff0
commit
26a46ef40c
1 changed files with 1 additions and 1 deletions
|
|
@ -1860,7 +1860,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
// if released npc not from its item (from crafted packet)
|
// if released npc not from its item (from crafted packet)
|
||||||
// e.g. using bunny item to release golden bunny
|
// 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);
|
TShock.Log.ConsoleDebug("Bouncer / OnReleaseNPC rejected npc release from {0}", args.Player.Name);
|
||||||
args.Player.Kick("Trying to release different critter exploit!", true);
|
args.Player.Kick("Trying to release different critter exploit!", true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue