Procházet zdrojové kódy

Disable weight check for gm.

JIV před 15 roky
rodič
revize
549f859ecf

+ 2 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/itemcontainer/PcInventory.java

@@ -719,6 +719,8 @@ public class PcInventory extends Inventory
 	@Override
 	public boolean validateWeight(int weight)
 	{
+		if (_owner.isGM() && _owner.getAccessLevel().allowTransaction())
+			return true; // disable weight check for GM
 		return (_totalWeight + weight <= _owner.getMaxLoad());
 	}
 }