Redeem command fix for CF_diamond_ furniture

This commit is contained in:
ArpyAge 2022-03-27 16:06:07 +02:00
parent f81470f7ba
commit 06969df00a

View File

@ -51,6 +51,15 @@ public class RedeemCommand extends Command {
pointsType = Integer.valueOf(item.getBaseItem().getName().split("_")[1]); pointsType = Integer.valueOf(item.getBaseItem().getName().split("_")[1]);
pointsAmount = Integer.valueOf(item.getBaseItem().getName().split("_")[2]); pointsAmount = Integer.valueOf(item.getBaseItem().getName().split("_")[2]);
points.adjustOrPutValue(pointsType, pointsAmount, pointsAmount);
}
else if (item.getBaseItem().getName().startsWith("CF_diamond_")) {
int pointsType;
int pointsAmount;
pointsType = 5;
pointsAmount = Integer.valueOf(item.getBaseItem().getName().split("_")[2]);
points.adjustOrPutValue(pointsType, pointsAmount, pointsAmount); points.adjustOrPutValue(pointsType, pointsAmount, pointsAmount);
} }
} }