diff --git a/CHANGELOG.md b/CHANGELOG.md index 6046be0..88a6933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 --- diff --git a/build.gradle b/build.gradle index 6e06218..6a87c47 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ publishMods { end = project.minecraft_version } - javaVersions.add(JavaVersion.VERSION_17) + javaVersions.add(java.sourceCompatibility) clientRequired = true serverRequired = true diff --git a/src/main/java/com/b1n_ry/yigd/components/RespawnComponent.java b/src/main/java/com/b1n_ry/yigd/components/RespawnComponent.java index 062aa62..5c1d736 100644 --- a/src/main/java/com/b1n_ry/yigd/components/RespawnComponent.java +++ b/src/main/java/com/b1n_ry/yigd/components/RespawnComponent.java @@ -50,7 +50,8 @@ public void primeForRespawn(GameProfile profile) { public void apply(ServerPlayerEntity player) { if (this.soulboundInventory != null) { - DefaultedList extraItems = this.soulboundInventory.applyToPlayer(player); + DefaultedList extraItems = this.soulboundInventory.pullBindingCurseItems(player); + extraItems.addAll(this.soulboundInventory.applyToPlayer(player)); double x = player.getX(); double y = player.getY();