forked from MagicBane/Server
Inline templateID
This commit is contained in:
@@ -284,7 +284,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
writer.putInt(0); //items left to produce?
|
||||
|
||||
if (toRoll != null) {
|
||||
writer.putInt(toRoll.getTemplateID());
|
||||
writer.putInt(toRoll.templateID);
|
||||
writer.putInt(toRoll.getValue());
|
||||
} else {
|
||||
writer.putInt(0);
|
||||
@@ -301,7 +301,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
|
||||
timeLeft /= 1000;
|
||||
writer.putInt((int) timeLeft);
|
||||
writer.putInt(vendor.getRollingTimeInSeconds(toRoll.getTemplateID()));
|
||||
writer.putInt(vendor.getRollingTimeInSeconds(toRoll.templateID));
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@@ -447,14 +447,14 @@ public class ManageNPCMsg extends ClientNetMsg {
|
||||
writer.putInt(item.getObjectUUID());
|
||||
|
||||
writer.putInt(0);
|
||||
writer.putInt(item.getTemplateID());
|
||||
writer.putInt(item.templateID);
|
||||
writer.putInt(item.template.item_value);
|
||||
|
||||
long timeLife = item.getDateToUpgrade() - System.currentTimeMillis();
|
||||
|
||||
timeLife /= 1000;
|
||||
writer.putInt((int) timeLife);
|
||||
writer.putInt(npc.getRollingTimeInSeconds(item.getTemplateID()));
|
||||
writer.putInt(npc.getRollingTimeInSeconds(item.templateID));
|
||||
writer.putInt(1);
|
||||
|
||||
if (item.isComplete())
|
||||
|
||||
Reference in New Issue
Block a user