From 626aa4fc740a0c68c3765c0e08bbd16ab439fb5d Mon Sep 17 00:00:00 2001 From: Rosenthalk0 Date: Thu, 13 Apr 2023 12:37:26 -0500 Subject: [PATCH] Fixing death drop stat and keepSoulboundOndeath settings! --- .../java/net/Indyuce/mmoitems/listener/PlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/PlayerListener.java b/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/PlayerListener.java index 1c3ea2a7..a4852e04 100644 --- a/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/PlayerListener.java +++ b/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/PlayerListener.java @@ -66,7 +66,7 @@ public class PlayerListener implements Listener { */ @EventHandler(priority = EventPriority.HIGH) public void onDeathForSoulbound(PlayerDeathEvent event) { - if (event.getKeepInventory() || !MMOItems.plugin.getLanguage().keepSoulboundOnDeath) + if (event.getKeepInventory() ) return; Player player = event.getEntity(); @@ -90,7 +90,7 @@ public class PlayerListener implements Listener { * using a JsonParser followed by map checkups in the SoulboundData * constructor */ - else if (nbt.hasTag("MMOITEMS_SOULBOUND") && nbt.getString("MMOITEMS_SOULBOUND").contains(player.getUniqueId().toString())) { + else if (MMOItems.plugin.getLanguage().keepSoulboundOnDeath && nbt.hasTag("MMOITEMS_SOULBOUND") && nbt.getString("MMOITEMS_SOULBOUND").contains(player.getUniqueId().toString())) { iterator.remove(); soulboundInfo.add(item); }