mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2025-11-24 21:36:20 +00:00
修复背包已满时 点击绑定物品会导致物品消失的BUG...
Accept Merge Request #1 : ( J_twitter : master -> 502647092 : master )
This commit is contained in:
@@ -77,6 +77,10 @@ public class PlayerListener implements Listener {
|
|||||||
if (ItemUtils.isBindOnPickup(itemStack) || ItemsConfig.isActionItem(itemStack, ActionType.PICKUP_ITEM)) {
|
if (ItemUtils.isBindOnPickup(itemStack) || ItemsConfig.isActionItem(itemStack, ActionType.PICKUP_ITEM)) {
|
||||||
ItemUtils.soulbindItem(player, itemStack);
|
ItemUtils.soulbindItem(player, itemStack);
|
||||||
}
|
}
|
||||||
|
if(player.getItemOnCursor()!=null && ItemUtils.isSoulbound(player.getItemOnCursor())){
|
||||||
|
item.setPickupDelay(40);
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user