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