Minor AbstractScript delete count check.
Contributed by rocknowx.
This commit is contained in:
parent
749571592f
commit
08578fa74a
@ -2872,7 +2872,10 @@ public abstract class AbstractScript implements INamable
|
||||
{
|
||||
toDelete = amount - currentCount;
|
||||
}
|
||||
takeItem(player, i, toDelete);
|
||||
if (toDelete > 0)
|
||||
{
|
||||
takeItem(player, i, toDelete);
|
||||
}
|
||||
currentCount += toDelete;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user