Minor AbstractScript delete count check.

Contributed by rocknowx.
This commit is contained in:
MobiusDev 2015-12-24 07:32:48 +00:00
parent 749571592f
commit 08578fa74a

View File

@ -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;
}
}