mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 16:49:04 +00:00
Update player run calculations (#108)
* Update player run calculations * add regen calculations
This commit is contained in:
@@ -52,6 +52,7 @@ public class Weight extends ItemDefinitions {
|
||||
public static void updateWeight(Client c) {
|
||||
if (c != null) {
|
||||
c.getActionSender().writeWeight((int) c.weight);
|
||||
// Inventory items
|
||||
for (int playerItem : c.playerItems) {
|
||||
if (playerItem > -1) {// inventory
|
||||
for (ItemList i1 : Server.itemHandler.ItemList) {
|
||||
@@ -62,7 +63,8 @@ public class Weight extends ItemDefinitions {
|
||||
}
|
||||
}
|
||||
}
|
||||
} // equipment
|
||||
}
|
||||
// Equiped items
|
||||
for (int element : c.playerEquipment) {
|
||||
if (element > -1) {// equipment
|
||||
for (ItemList i1 : Server.itemHandler.ItemList) {
|
||||
|
||||
Reference in New Issue
Block a user