Skip to content

Commit

Permalink
Graves can generate under y=0 when generateGraveInVoid is set to fals…
Browse files Browse the repository at this point in the history
…e now
  • Loading branch information
B1n-ry committed Aug 29, 2024
1 parent 69cd270 commit 1ec9309
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# You're in Grave Danger 2.0.4

### Fixes
* Graves can now generate below y=0 (if blocks can exist there) when `generateGraveInVoid`
config is set to `false`

---

# You're in Grave Danger 2.0.3

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod_name=You're in Grave Danger
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=2.0.3
mod_version=2.0.4
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void allowGraveGenerationEvent(AllowGraveGenerationEvent event) {
return;
}

if (!graveConfig.generateGraveInVoid && grave.getPos().getY() < 0) {
if (!graveConfig.generateGraveInVoid && grave.getPos().getY() < context.world().getMinBuildHeight()) {
event.setAllowGeneration(false);
return;
}
Expand Down

0 comments on commit 1ec9309

Please sign in to comment.