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,8 +445,8 @@ public void onPlayerPickupItem(PlayerPickupItemEvent event) {
|
|||||||
final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(location.getWorld(), ownerUniqueId);
|
final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(location.getWorld(), ownerUniqueId);
|
||||||
if (playerData.lockPlayerDeathDrops) {
|
if (playerData.lockPlayerDeathDrops) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
NMSUtil.getInstance().removeItemPersistentData(event.getItem().getItemStack(), "owner");
|
NMSUtil.getInstance().removeItemPersistentData(event.getItem().getItemStack(), "owner");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user