Skip to content

Commit

Permalink
Implement new breaker API
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 29, 2022
1 parent 97da84c commit e4cd18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public BehaviorStatus run() {
int tickDifference = currentTick - startDigTick;
float damage = getDamage(tickDifference);
if (damage >= 1F) {
entity.getWorld().getBlockAt(x, y, z).breakNaturally(getItemStack());
configuration.blockBreaker().accept(entity.getWorld().getBlockAt(x, y, z), getItemStack());
return BehaviorStatus.SUCCESS;
}
int modifiedDamage = (int) (damage * 10.0F);
Expand Down
2 changes: 1 addition & 1 deletion main/src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ citizens.commands.npc.remove.removed-all=You permanently removed all NPCs.
citizens.commands.npc.remove.removed=You permanently removed [[{0}]].
citizens.commands.npc.rename.renamed=You renamed [[{0}]] to [[{1}]].
citizens.commands.npc.respawn.delay-set=Respawn delay set to [[{0}]] ticks.
citizens.commands.npc.respawn.describe=Respawn delay is currently [[{0}]].
citizens.commands.npc.respawn.describe=Respawn delay is currently [[{0}]] ticks.
citizens.commands.npc.select.already-selected=You already have that NPC selected.
citizens.commands.npc.script.invalid-file=Unknown or unavailable script ''[[{0}]]''.
citizens.commands.npc.scoreboard.added-tags=Added these tags: [[{0}]].
Expand Down

0 comments on commit e4cd18b

Please sign in to comment.