Don't call Shop#setId twice

This commit is contained in:
Eric 2020-03-21 16:58:13 +01:00
parent 6d91f21293
commit c844dffc14

View File

@ -192,7 +192,6 @@ public class ShopManagerImpl implements ShopManager {
ShopImpl shop = new ShopImpl(vendor, product, location, buyPrice, sellPrice);
return plugin.getDatabase().addShop(shop).thenApply(id -> {
shop.create();
shop.setId(id);
synchronized (shopsInWorld) {
String worldName = location.getWorld().getName();