mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-02 18:48:03 +01:00
sponge: Fix unlock drops being triggered on non-death drops.
This commit is contained in:
parent
bdcfc6b76c
commit
0192a2daf5
@ -542,6 +542,10 @@ public void onPlayerDeath(DestructEntityEvent.Death event) {
|
||||
|
||||
@Listener(order = Order.FIRST, beforeModifications = true)
|
||||
public void onPlayerDeathDropItem(DropItemEvent.Destruct event, @First Player player) {
|
||||
if (player.get(Keys.HEALTH).get() > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
final GDClaim claim = this.dataStore.getClaimAt(player.getLocation());
|
||||
final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(player.getWorld(), player.getUniqueId());
|
||||
if (GDOptions.PLAYER_ITEM_DROP_LOCK || GDOptions.PVP_ITEM_DROP_LOCK) {
|
||||
|
Loading…
Reference in New Issue
Block a user