Skip to content

Commit

Permalink
Restore entity counter to //remove and grammatified //butcher similarly.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany committed Jan 20, 2015
1 parent 372a520 commit e806e23
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,7 @@ public void butcher(Actor actor, CommandContext args) throws WorldEditException
killed += visitor.getAffected();
}

if (radius < 0) {
actor.print("Killed " + killed + " mobs.");
} else {
actor.print("Killed " + killed + " mobs in a radius of " + radius + ".");
}
actor.print("Killed " + killed + (killed != 1 ? " mobs" : "mob") + (radius < 0 ? "" : "in a radius of " + radius) + ".");

if (editSession != null) {
session.remember(editSession);
Expand Down Expand Up @@ -500,7 +496,7 @@ public void remove(Actor actor, CommandContext args) throws WorldEditException,
removed += visitor.getAffected();
}

actor.print("Marked " + (removed != 1 ? "entities" : "entity") + " for removal.");
actor.print("Marked " + removed + (removed != 1 ? " entities" : " entity") + " for removal.");

if (editSession != null) {
session.remember(editSession);
Expand Down

0 comments on commit e806e23

Please sign in to comment.