From d6ed17dd9d14369034ef092bf5daadefe2916397 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 16 Sep 2011 05:48:09 +0200 Subject: [PATCH] Made some variables final. --- src/main/java/com/sk89q/worldedit/EditSession.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/EditSession.java b/src/main/java/com/sk89q/worldedit/EditSession.java index 366dcdf54..27b4a6206 100644 --- a/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/src/main/java/com/sk89q/worldedit/EditSession.java @@ -154,8 +154,8 @@ public EditSession(LocalWorld world, int maxBlocks, BlockBag blockBag) { * @return Whether the block changed */ public boolean rawSetBlock(Vector pt, BaseBlock block) { - int y = pt.getBlockY(); - int type = block.getType(); + final int y = pt.getBlockY(); + final int type = block.getType(); if (y < 0 || y > 127) { return false; } @@ -173,7 +173,7 @@ public boolean rawSetBlock(Vector pt, BaseBlock block) { } } - int existing = world.getBlockType(pt); + final int existing = world.getBlockType(pt); // Clear the container block so that it doesn't drop items if (BlockType.isContainerBlock(existing) && blockBag == null) { @@ -203,7 +203,7 @@ public boolean rawSetBlock(Vector pt, BaseBlock block) { } } - boolean result; + final boolean result; if (BlockType.usesData(type)) { if (fastMode) {