Skip to content

Commit e568b43

Browse files
committed
change vec
1 parent 3d73d6f commit e568b43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/io/greitan/mineserv/tasks/PositionsTask.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public double getCaveDensity(Player player)
9494
"TUFF"
9595
};
9696

97-
int block1 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 3, 0))) ? 1 : 0;
98-
int block2 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), -3, 0, 0))) ? 1 : 0;
99-
int block3 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 3, 0, 0))) ? 1 : 0;
100-
int block4 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 0, 3))) ? 1 : 0;
101-
int block5 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 0, -3))) ? 1 : 0;
102-
int block6 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, -3, 0))) ? 1 : 0;
97+
int block1 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 1, 0))) ? 1 : 0;
98+
int block2 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), -1, 0, 0))) ? 1 : 0;
99+
int block3 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 1, 0, 0))) ? 1 : 0;
100+
int block4 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 0, 1))) ? 1 : 0;
101+
int block5 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, 0, -1))) ? 1 : 0;
102+
int block6 = Arrays.asList(caveBlocks).contains(getBlockType(getRelativeLocation(player.getLocation(), 0, -1, 0))) ? 1 : 0;
103103

104104
return (block1 + block2 + block3 + block4 + block5 + block6) / 6.0;
105105
}

0 commit comments

Comments
 (0)