Endless water bucket is now considered to be a water bucket
This commit is contained in:
parent
458a5cebf9
commit
2d66265afd
1 changed files with 34 additions and 30 deletions
|
|
@ -2681,6 +2681,10 @@ namespace TShockAPI
|
|||
{
|
||||
bucket = 3;
|
||||
}
|
||||
else if (args.TPlayer.inventory[args.TPlayer.selectedItem].type == 3031)
|
||||
{
|
||||
bucket = 4;
|
||||
}
|
||||
|
||||
if (type == 1 && !(bucket == 2 || bucket == 0))
|
||||
{
|
||||
|
|
@ -2698,7 +2702,7 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (type == 0 && !(bucket == 1 || bucket == 0))
|
||||
if (type == 0 && !(bucket == 1 || bucket == 0 || bucket == 4))
|
||||
{
|
||||
args.Player.SendErrorMessage("You do not have permission to perform this action.");
|
||||
args.Player.Disable("Spreading water without holding a water bucket");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue