Skip to content

Commit

Permalink
Fix bug 16988 "using a placed anvil leaves no coreprotect log" (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromaTK authored Sep 11, 2023
1 parent 4d41a63 commit d9b36a7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.playmonumenta.plugins.Constants;
import com.playmonumenta.plugins.Plugin;
import com.playmonumenta.plugins.integrations.CoreProtectIntegration;
import com.playmonumenta.plugins.itemstats.infusions.Shattered;
import com.playmonumenta.plugins.utils.ItemStatUtils;
import com.playmonumenta.plugins.utils.ItemStatUtils.EnchantmentType;
Expand Down Expand Up @@ -76,6 +77,7 @@ public void run() {
}

}.runTaskTimer(plugin, 0, 7);
CoreProtectIntegration.logRemoval(player, block);
block.setType(Material.AIR);
block.removeMetadata(Constants.ANVIL_CONFIRMATION_METAKEY, plugin);
int repCount = ScoreboardUtils.getScoreboardValue(player, REPAIR_OBJECTIVE).orElse(0) + 1;
Expand Down

0 comments on commit d9b36a7

Please sign in to comment.