Commit ecfab10a authored by Kenix Whisperwind's avatar Kenix Whisperwind

Fix defect in Market constructor that calls the static Server context when we...

Fix defect in Market constructor that calls the static Server context when we want to use Market.getWorld().getServer()
parent 5d80c1cb
......@@ -41,7 +41,7 @@ public class Market implements Runnable {
this.auctionItems = new ArrayList<>();
this.auctionTaskQueue = new LinkedBlockingQueue<>();
this.refreshRequestTasks = new LinkedBlockingQueue<>();
this.scheduledExecutor = Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder().setNameFormat(Server.getServer().getName()+" : AuctionHouseThread").build());
this.scheduledExecutor = Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder().setNameFormat(getWorld().getServer().getName()+" : AuctionHouseThread").build());
this.marketDatabase = new MarketDatabase(this);
this.running = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment