@ -49,7 +49,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 ;
}
/ * *