9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-19 15:09:25 +00:00

Fix working range

This commit is contained in:
XiaoMoMi
2024-09-08 13:29:09 +08:00
parent 6aeb341a62
commit 90b1ce1994
2 changed files with 5 additions and 4 deletions

View File

@@ -282,12 +282,13 @@ public class SprinklerBlock extends AbstractCustomCropsBlock {
}
int[][] range = config.range();
Pos3[] pos3s = new Pos3[range.length * 2];
for (int i = 0; i < range.length; i++) {
int length = range.length;
Pos3[] pos3s = new Pos3[length * 2];
for (int i = 0; i < length; i++) {
int x = range[i][0];
int z = range[i][1];
pos3s[i] = location.add(x, 0, z);
pos3s[i] = location.add(x, -1, z);
pos3s[i+length] = location.add(x, -1, z);
}
for (Pos3 pos3 : pos3s) {

View File

@@ -1,6 +1,6 @@
# Project settings
# Rule: [major update].[feature update].[bug fix]
project_version=3.6.5
project_version=3.6.5.1
config_version=39
project_group=net.momirealms