grounditems: Remove duplicate item count in notifications (#10526)
This commit is contained in:
@@ -650,9 +650,6 @@ public class GroundItemsPlugin extends Plugin
|
|||||||
|
|
||||||
if (item.getQuantity() > 1)
|
if (item.getQuantity() > 1)
|
||||||
{
|
{
|
||||||
notificationStringBuilder.append(" x ").append(item.getQuantity());
|
|
||||||
|
|
||||||
|
|
||||||
if (item.getQuantity() > (int) Character.MAX_VALUE)
|
if (item.getQuantity() > (int) Character.MAX_VALUE)
|
||||||
{
|
{
|
||||||
notificationStringBuilder.append(" (Lots!)");
|
notificationStringBuilder.append(" (Lots!)");
|
||||||
@@ -664,8 +661,7 @@ public class GroundItemsPlugin extends Plugin
|
|||||||
.append(")");
|
.append(")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
notificationStringBuilder.append("!");
|
|
||||||
notifier.notify(notificationStringBuilder.toString());
|
notifier.notify(notificationStringBuilder.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user