mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-22 01:49:09 +00:00
修复背包满时丢出绑定物品导致物品消失的问题
This commit is contained in:
parent
ed8d9d02ca
commit
b56f512df5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user