Code quality improvements.

This commit is contained in:
TomyLobo
2013-10-19 11:31:31 +02:00
parent 886b2ab720
commit 661484f858
15 changed files with 27 additions and 31 deletions

View File

@ -108,7 +108,7 @@ public class RegionCommands {
to = we.getBlockPattern(player, args.getString(1));
}
int affected = 0;
final int affected;
if (to instanceof SingleBlockPattern) {
affected = editSession.replaceBlocks(session.getSelection(player.getWorld()), from,
((SingleBlockPattern) to).getBlock());