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:
@@ -282,12 +282,13 @@ public class SprinklerBlock extends AbstractCustomCropsBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int[][] range = config.range();
|
int[][] range = config.range();
|
||||||
Pos3[] pos3s = new Pos3[range.length * 2];
|
int length = range.length;
|
||||||
for (int i = 0; i < range.length; i++) {
|
Pos3[] pos3s = new Pos3[length * 2];
|
||||||
|
for (int i = 0; i < length; i++) {
|
||||||
int x = range[i][0];
|
int x = range[i][0];
|
||||||
int z = range[i][1];
|
int z = range[i][1];
|
||||||
pos3s[i] = location.add(x, 0, z);
|
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) {
|
for (Pos3 pos3 : pos3s) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Project settings
|
# Project settings
|
||||||
# Rule: [major update].[feature update].[bug fix]
|
# Rule: [major update].[feature update].[bug fix]
|
||||||
project_version=3.6.5
|
project_version=3.6.5.1
|
||||||
config_version=39
|
config_version=39
|
||||||
project_group=net.momirealms
|
project_group=net.momirealms
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user