mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 18:09:48 -05:00
Fix more build errors
This commit is contained in:
1 parent
5364dac0c6
commit
b3d90503bb
3 files changed
+5
-18
No files matched your search
@@ -646,8 +646,6 @@ public class QuickShop extends JavaPlugin {
|
||||
this.updateWatcher.uninit();
|
||||
}
|
||||
|
||||
AsyncPacketSender.stop();
|
||||
|
||||
Util.debugLog("Cleanup tasks...");
|
||||
|
||||
try {
|
||||
@@ -871,10 +869,6 @@ public class QuickShop extends JavaPlugin {
|
||||
displayDupeRemoverWatcher = new DisplayDupeRemoverWatcher();
|
||||
timerTaskList.add(displayDupeRemoverWatcher.runTaskTimerAsynchronously(this, 0, 1));
|
||||
}
|
||||
if (display && DisplayItem.getNowUsing() == DisplayType.VIRTUALITEM) {
|
||||
AsyncPacketSender.start(this);
|
||||
}
|
||||
|
||||
/* Load all shops. */
|
||||
shopLoader = new ShopLoader(this);
|
||||
shopLoader.loadShops();
|
||||
|
||||
@@ -164,23 +164,18 @@ public class ContainerShop implements Shop {
|
||||
private void initDisplayItem() {
|
||||
Util.ensureThread(false);
|
||||
if (plugin.isDisplay()) {
|
||||
Chunk chunk = getLocation().getChunk();
|
||||
switch (DisplayItem.getNowUsing()) {
|
||||
case UNKNOWN:
|
||||
Util.debugLog(
|
||||
"Failed to create a ContainerShop displayItem, the type is unknown, fallback to RealDisplayItem");
|
||||
this.displayItem = new RealDisplayItem(this);
|
||||
break;
|
||||
case REALITEM:
|
||||
this.displayItem = new RealDisplayItem(this);
|
||||
this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX());
|
||||
break;
|
||||
case VIRTUALITEM:
|
||||
Chunk chunk = getLocation().getChunk();
|
||||
this.displayItem = new VirtualDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX());
|
||||
break;
|
||||
default:
|
||||
Util.debugLog(
|
||||
"Warning: Failed to create a ContainerShop displayItem, the type we didn't know, fallback to RealDisplayItem");
|
||||
this.displayItem = new RealDisplayItem(this);
|
||||
this.displayItem = new RealDisplayItem(this, chunk.getWorld().getName(), chunk.getX(), chunk.getX());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,10 +49,8 @@ public class RealDisplayItem extends DisplayItem {
|
||||
*
|
||||
* @param shop The shop (See Shop)
|
||||
*/
|
||||
RealDisplayItem(@NotNull Shop shop) {
|
||||
|
||||
super(shop);
|
||||
|
||||
RealDisplayItem(@NotNull Shop shop, @NotNull String worldName, int chunkX, int chunkZ) {
|
||||
super(shop, worldName, chunkX, chunkZ);
|
||||
// this.displayLoc = shop.getLocation().clone().add(0.5, 1.2, 0.5);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user