Skip to content

Commit

Permalink
Fixed prayer grants new gold after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Jul 13, 2024
1 parent 4a81475 commit cb9a112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private void onPrayerClick(PlayerInteractEvent event) {
new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SPECIAL_BLOCKS_PRAY_CHAT").asKey().player(event.getPlayer()).sendPlayer();
user.adjustStatistic("LOCAL_PRAISES", 1);
VersionUtils.sendParticles("FIREWORKS_SPARK", event.getPlayer(), event.getClickedBlock().getLocation(), 10);
ItemPosition.addItem(user, ItemPosition.GOLD_INGOTS, new ItemStack(Material.GOLD_INGOT, -1));
user.adjustStatistic("LOCAL_GOLD", -1);
ItemPosition.removeItem(user, new ItemStack(Material.GOLD_INGOT, 1));
}

Expand Down

0 comments on commit cb9a112

Please sign in to comment.