FishOutNPC - Simplify bouncer logic. Fix check in event.

This commit is contained in:
Patrikkk 2020-05-29 12:00:33 +02:00
parent 695ca52a9a
commit 47dd4a4345
2 changed files with 4 additions and 11 deletions

View file

@ -1889,7 +1889,7 @@ namespace TShockAPI
public static HandlerList<FishOutNPCEventArgs> FishOutNPC = new HandlerList<FishOutNPCEventArgs>();
private static bool OnFishOutNPC(TSPlayer player, MemoryStream data, ushort tileX, ushort tileY, short npcID)
{
if (FoodPlatterTryPlacing == null)
if (FishOutNPC == null)
return false;
var args = new FishOutNPCEventArgs