mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
Added "Atcg" Achievement on crafting
This commit is contained in:
parent
52be0b45a0
commit
37abd2aadb
@ -54,17 +54,16 @@ public class CraftingCraftItemEvent extends MessageHandler {
|
|||||||
|
|
||||||
if (!recipe.getAchievement().isEmpty()) {
|
if (!recipe.getAchievement().isEmpty()) {
|
||||||
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement(recipe.getAchievement()));
|
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement(recipe.getAchievement()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendResponse(new CraftingResultComposer(recipe));
|
this.client.sendResponse(new CraftingResultComposer(recipe));
|
||||||
this.client.getHabbo().getInventory().getItemsComponent().addItem(rewardItem);
|
this.client.getHabbo().getInventory().getItemsComponent().addItem(rewardItem);
|
||||||
this.client.sendResponse(new AddHabboItemComposer(rewardItem));
|
this.client.sendResponse(new AddHabboItemComposer(rewardItem));
|
||||||
toRemove.forEachValue(new TObjectProcedure<HabboItem>() {
|
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("Atcg"));
|
||||||
@Override
|
toRemove.forEachValue(object -> {
|
||||||
public boolean execute(HabboItem object) {
|
|
||||||
CraftingCraftItemEvent.this.client.sendResponse(new RemoveHabboItemComposer(object.getGiftAdjustedId()));
|
CraftingCraftItemEvent.this.client.sendResponse(new RemoveHabboItemComposer(object.getGiftAdjustedId()));
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this.client.sendResponse(new InventoryRefreshComposer());
|
this.client.sendResponse(new InventoryRefreshComposer());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user