Fix wrong return in player pickup event.

This commit is contained in:
bloodshot 2020-11-18 23:39:37 -05:00
parent 91156f0722
commit 1541d0bb39
1 changed files with 1 additions and 1 deletions

View File

@ -445,8 +445,8 @@ public class PlayerEventHandler implements Listener {
final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(location.getWorld(), ownerUniqueId);
if (playerData.lockPlayerDeathDrops) {
event.setCancelled(true);
return;
}
return;
}
NMSUtil.getInstance().removeItemPersistentData(event.getItem().getItemStack(), "owner");
}