Make Bouncer allow Bottomless Honey Buckets

This commit is contained in:
James Puleo 2022-10-10 18:59:54 -04:00
parent 4189b4ab1f
commit bf53c3313c
No known key found for this signature in database
GPG key ID: 3E16C7EFA34FB15D

View file

@ -1544,6 +1544,10 @@ namespace TShockAPI
{
bucket = 6;
}
else if (selectedItemType == ItemID.BottomlessHoneyBucket)
{
bucket = 7;
}
if (!wasThereABombNearby && type == LiquidType.Lava && !(bucket == 2 || bucket == 0 || bucket == 5 || bucket == 6))
{
@ -1585,7 +1589,7 @@ namespace TShockAPI
return;
}
if (!wasThereABombNearby && type == LiquidType.Honey && !(bucket == 3 || bucket == 0))
if (!wasThereABombNearby && type == LiquidType.Honey && !(bucket == 3 || bucket == 0 || bucket == 7))
{
TShock.Log.ConsoleDebug("Bouncer / OnLiquidSet rejected bucket check 4 from {0}", args.Player.Name);
args.Player.SendErrorMessage("You do not have permission to perform this action.");