Fix Market Config Command

This commit is contained in:
Kam committed 2024-02-20 02:08:46 -05:00
1 parent 3e48773940
commit 444703b3f2
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -74,7 +74,7 @@ public class Market {
}
}
public File getNewMarketDir(){
public static File getNewMarketDir(){
try{
File file = new File(CustomNpcs.getWorldSaveDirectory(),"markets_new");
if(file.exists()){
@@ -110,7 +110,7 @@ public class Market {
}
public void convertMarketFiles(final EntityPlayerMP sender, final boolean type){
public static void convertMarketFiles(final EntityPlayerMP sender, final boolean type){
ExecutorService executor = Executors.newSingleThreadExecutor();
executor.execute(() -> {
String fileType;
@@ -1,5 +1,6 @@
package kamkeel.command;
import foxz.utils.Market;
import net.minecraft.block.Block;
import net.minecraft.block.BlockIce;
import net.minecraft.block.BlockLeavesBase;
@@ -264,7 +265,7 @@ public class ConfigCommand extends CommandKamkeelBase {
}
sendResult(sender, "Started Conversion Process for Market");
PlayerDataController.Instance.convertPlayerFiles(send, convertToDat);
Market.convertMarketFiles(send, convertToDat);
}
}