mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-08 03:39:42 +01:00
Don't call Shop#setId twice
This commit is contained in:
parent
6d91f21293
commit
c844dffc14
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user