1
0
mirror of https://e.coding.net/circlecloud/Soulbound.git synced 2024-11-22 01:49:09 +00:00

修复背包满时丢出绑定物品导致物品消失的问题

This commit is contained in:
john180 2016-01-11 21:33:36 +08:00
parent ed8d9d02ca
commit b56f512df5

View File

@ -79,7 +79,7 @@ public class PlayerListener implements Listener {
} }
if(player.getItemOnCursor()!=null && ItemUtils.isSoulbound(player.getItemOnCursor())){ if(player.getItemOnCursor()!=null && ItemUtils.isSoulbound(player.getItemOnCursor())){
item.setPickupDelay(40); item.setPickupDelay(40);
event.setCancelled(true); event.setCancelled(true);
} }
} }