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 5cef8fb commit 33992ab
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.4.8

### 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.4.7

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.parallel=true
loader_version=0.15.11

# Mod Properties
mod_version = 2.4.7
mod_version = 2.4.8
maven_group = com.b1n_ry.yigd
archives_base_name = youre-in-grave-danger-fabric

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static void registerEventCallbacks() {

if (graveConfig.dimensionBlacklist.contains(grave.getWorldRegistryKey().getValue().toString())) return false;

if (!graveConfig.generateGraveInVoid && grave.getPos().getY() < 0) return false;
if (!graveConfig.generateGraveInVoid && grave.getPos().getY() < context.world().getBottomY()) return false;

if (graveConfig.requireItem) {
Item item = Registries.ITEM.get(Identifier.of(graveConfig.requiredItem));
Expand Down

0 comments on commit 33992ab

Please sign in to comment.