Fix (AutoSell) Item-Filters not being saved correctly for next srv start

When the AutoSell filters are saved, they got saved as the normal item filter instead.
On next server start, when loading all the Hoppers from the database,
the AutoSell filter would be empty again and the item filter got overwritten.
This commit is contained in:
Christian Koop 2023-03-31 20:57:21 +02:00
parent 38d9995d6c
commit b38d6cbf3a
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -164,7 +164,7 @@ public class GUIAutoSellFilter extends CustomizableGui {
filter.setAutoSellWhiteList(whiteListItems);
filter.setAutoSellBlackList(blackListItems);
plugin.getDataManager().updateItems(hopper, ItemType.WHITELIST, whiteListItems);
plugin.getDataManager().updateItems(hopper, ItemType.BLACKLIST, blackListItems);
plugin.getDataManager().updateItems(hopper, ItemType.AUTO_SELL_WHITELIST, whiteListItems);
plugin.getDataManager().updateItems(hopper, ItemType.AUTO_SELL_BLACKLIST, blackListItems);
}
}