forked from MagicBane/Server
Weight bugfix
This commit is contained in:
@@ -617,7 +617,7 @@ public class Warehouse extends AbstractWorldObject {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (addToInventory)
|
if (addToInventory)
|
||||||
if (!itemMan.hasRoomInventory(template.item_wt)) {
|
if (!itemMan.hasRoomInventory(template.item_wt * amount)) {
|
||||||
ChatManager.chatSystemInfo(pc, "You can not carry any more of that item.");
|
ChatManager.chatSystemInfo(pc, "You can not carry any more of that item.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user