Archived
0

fix map is not changes on change name

This commit is contained in:
iMoHax
2014-08-06 14:14:32 +04:00
parent 51bf7c67bf
commit 9c5bbdc0c2
3 changed files with 18 additions and 2 deletions

View File

@@ -70,14 +70,14 @@ public class MarketModel {
void updateName(ItemModel model, String value) {
Item item = model.getItem();
String old = item.getName();
item.setName(value);
market.updateName(item, value);
if (alert) listener.forEach((c) -> c.nameChange(model, old, value));
}
void updateName(VendorModel model, String value) {
Vendor vendor = model.getVendor();
String old = vendor.getName();
vendor.setName(value);
market.updateName(vendor, value);
if (alert) listener.forEach((c) -> c.nameChange(model, old, value));
}