Skip to content

Commit

Permalink
Changed trinket default drop rule to be the default drop rule for tri…
Browse files Browse the repository at this point in the history
…nkets
  • Loading branch information
B1n-ry committed Mar 11, 2024
1 parent 0ec6d34 commit bfc9d61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
### Fixes
* Fixed mod clearing player inventory when trying to claim a grave that had generated
before removing a compatible inventory mod
* Improved compat and fixed crash with Beans Backpacks
* Fixed crash with Beans Backpacks
* No longer sending error message to player when claiming the grave by breaking it
* Default trinket drop rule will now actually be default

### Changes
* Improved compatibility with Beans Backpacks, by dropping the backpack instead of the
items inside it when it's supposed to be dropped

---

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/b1n_ry/yigd/Yigd.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void onInitialize() {
Registry.register(Registries.ENCHANTMENT, new Identifier(MOD_ID, "death_sight"), DEATH_SIGHT_ENCHANTMENT);
}
if (config.extraFeatures.deathScroll.enabled) {
DEATH_SCROLL_ITEM = new DeathScrollItem(new FabricItemSettings());
DEATH_SCROLL_ITEM = new DeathScrollItem(new FabricItemSettings().requires());
Registry.register(Registries.ITEM, new Identifier(MOD_ID, "death_scroll"), DEATH_SCROLL_ITEM);
}
if (config.extraFeatures.graveKeys.enabled) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/b1n_ry/yigd/compat/TrinketsCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private DropRule convertDropRule(TrinketEnums.DropRule dropRule) {
return switch (dropRule) {
case KEEP -> DropRule.KEEP;
case DESTROY -> DropRule.DESTROY;
default -> DropRule.PUT_IN_GRAVE;
default -> YigdConfig.getConfig().compatConfig.defaultTrinketsDropRule;
};
}

Expand Down

0 comments on commit bfc9d61

Please sign in to comment.