mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-16 15:46:13 +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);
|
ShopImpl shop = new ShopImpl(vendor, product, location, buyPrice, sellPrice);
|
||||||
return plugin.getDatabase().addShop(shop).thenApply(id -> {
|
return plugin.getDatabase().addShop(shop).thenApply(id -> {
|
||||||
shop.create();
|
shop.create();
|
||||||
shop.setId(id);
|
|
||||||
|
|
||||||
synchronized (shopsInWorld) {
|
synchronized (shopsInWorld) {
|
||||||
String worldName = location.getWorld().getName();
|
String worldName = location.getWorld().getName();
|
||||||
|
Loading…
Reference in New Issue
Block a user