mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-06 19:28:20 +01:00
Fix wrong return in player pickup event.
This commit is contained in:
parent
91156f0722
commit
1541d0bb39
@ -445,8 +445,8 @@ public void onPlayerPickupItem(PlayerPickupItemEvent event) {
|
||||
final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(location.getWorld(), ownerUniqueId);
|
||||
if (playerData.lockPlayerDeathDrops) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
NMSUtil.getInstance().removeItemPersistentData(event.getItem().getItemStack(), "owner");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user