Skip to content

Commit fded51d

Browse files
committed
Fix Connection check in GlowStoneGenerator
Took 9 minutes
1 parent de4e341 commit fded51d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

custom-ore-generator/src/main/java/de/derfrzocker/custom/ore/generator/impl/oregenerator/GlowStoneGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ private void generate(@NotNull final ChunkAccess chunkAccess, @NotNull final Ran
115115
break;
116116
}
117117

118-
if (counter <= connections) {
118+
if (connections == 0 && counter == 0) {
119+
chunkAccess.setMaterial(material, xLocation, yLocation, zLocation);
120+
} else if (counter <= connections && counter != 0) {
119121
chunkAccess.setMaterial(material, xLocation, yLocation, zLocation);
120122
}
121123
}

0 commit comments

Comments
 (0)