Skip to content

Commit

Permalink
Soulbound binding cursed will no longer be stuck in the same slot upo…
Browse files Browse the repository at this point in the history
…n respawn
  • Loading branch information
B1n-ry committed Feb 21, 2024
1 parent 2244fe5 commit e8719a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ will now be rendered on the same row as the other columns
item is in the grave)
* Curse of binding trinkets will now be removed from its slot in a grave when dying,
as well as stay in the player inventory when claiming a grave
* Curse of binding soulbounded will no longer be stuck in the same slot upon respawn

---

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ publishMods {
end = project.minecraft_version
}

javaVersions.add(JavaVersion.VERSION_17)
javaVersions.add(java.sourceCompatibility)

clientRequired = true
serverRequired = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public void primeForRespawn(GameProfile profile) {

public void apply(ServerPlayerEntity player) {
if (this.soulboundInventory != null) {
DefaultedList<ItemStack> extraItems = this.soulboundInventory.applyToPlayer(player);
DefaultedList<ItemStack> extraItems = this.soulboundInventory.pullBindingCurseItems(player);
extraItems.addAll(this.soulboundInventory.applyToPlayer(player));

double x = player.getX();
double y = player.getY();
Expand Down

0 comments on commit e8719a3

Please sign in to comment.