Better name for map

This commit is contained in:
2024-04-06 16:08:06 -04:00
parent 16d17798be
commit 9bbe9b399e
2 changed files with 10 additions and 10 deletions
@@ -49,7 +49,7 @@ public class ItemProductionMsg extends ClientNetMsg {
private int npcUUID;
private boolean add;
private int itemPrice;
private HashMap<Integer, Integer> itemIDtoTypeMap;
private HashMap<Integer, Integer> items;
/**
* This is the general purpose constructor.
@@ -228,11 +228,11 @@ public class ItemProductionMsg extends ClientNetMsg {
writer.put((byte) 1);
writer.putInt(building.getStrongboxValue());
if (this.itemIDtoTypeMap != null) {
writer.putInt(this.itemIDtoTypeMap.size());
if (this.items != null) {
writer.putInt(this.items.size());
for (int itemID : this.itemIDtoTypeMap.keySet()) {
writer.putInt(this.itemIDtoTypeMap.get(itemID));
for (int itemID : this.items.keySet()) {
writer.putInt(this.items.get(itemID));
writer.putInt(itemID);
}
@@ -401,7 +401,7 @@ public class ItemProductionMsg extends ClientNetMsg {
tempIDs.put(this.templateID, type);
}
reader.getInt();
this.itemIDtoTypeMap = tempIDs;
this.items = tempIDs;
break;
case ACTION_DEPOSIT:
this.itemType = reader.getInt();
@@ -527,8 +527,8 @@ public class ItemProductionMsg extends ClientNetMsg {
return npcUUID;
}
public HashMap<Integer, Integer> getItemIDtoTypeMap() {
return itemIDtoTypeMap;
public HashMap<Integer, Integer> getItems() {
return items;
}
/**