mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Made some variables final.
This commit is contained in:
parent
633145d796
commit
d6ed17dd9d
@ -154,8 +154,8 @@ public EditSession(LocalWorld world, int maxBlocks, BlockBag blockBag) {
|
|||||||
* @return Whether the block changed
|
* @return Whether the block changed
|
||||||
*/
|
*/
|
||||||
public boolean rawSetBlock(Vector pt, BaseBlock block) {
|
public boolean rawSetBlock(Vector pt, BaseBlock block) {
|
||||||
int y = pt.getBlockY();
|
final int y = pt.getBlockY();
|
||||||
int type = block.getType();
|
final int type = block.getType();
|
||||||
if (y < 0 || y > 127) {
|
if (y < 0 || y > 127) {
|
||||||
return false;
|
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
|
// Clear the container block so that it doesn't drop items
|
||||||
if (BlockType.isContainerBlock(existing) && blockBag == null) {
|
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 (BlockType.usesData(type)) {
|
||||||
if (fastMode) {
|
if (fastMode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user