Variable renamed to conform with json
This commit is contained in:
@@ -85,7 +85,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
//make sure item is damaged and not destroyed
|
||||
|
||||
short dur = (short) toRepair.durabilityCurrent;
|
||||
short dur = (short) toRepair.combat_health_current;
|
||||
short max = (short) toRepair.template.item_health_full;
|
||||
|
||||
//account for durability modifications
|
||||
@@ -95,7 +95,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
if (dur >= max || dur < 1) {
|
||||
//redundancy message to clear item from window in client
|
||||
toRepair.setDurabilityCurrent(max);
|
||||
toRepair.setCombat_health_current(max);
|
||||
repairMsg.setupRepairAck(max - dur);
|
||||
dispatch = Dispatch.borrow(player, repairMsg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
@@ -142,7 +142,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
//repair the item
|
||||
|
||||
toRepair.setDurabilityCurrent(max);
|
||||
toRepair.setCombat_health_current(max);
|
||||
|
||||
//send repair msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user