From 06969df00a1ff9cd626fb01e61ea3a54d662e781 Mon Sep 17 00:00:00 2001 From: ArpyAge Date: Sun, 27 Mar 2022 16:06:07 +0200 Subject: [PATCH] Redeem command fix for CF_diamond_ furniture --- .../com/eu/habbo/habbohotel/commands/RedeemCommand.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/commands/RedeemCommand.java b/src/main/java/com/eu/habbo/habbohotel/commands/RedeemCommand.java index 21db5c7f..9d389474 100644 --- a/src/main/java/com/eu/habbo/habbohotel/commands/RedeemCommand.java +++ b/src/main/java/com/eu/habbo/habbohotel/commands/RedeemCommand.java @@ -51,6 +51,15 @@ public class RedeemCommand extends Command { pointsType = Integer.valueOf(item.getBaseItem().getName().split("_")[1]); 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); } }