Revert lots of multithreading for better threaded saving and data synchronization

This commit is contained in:
Kam committed 2023-05-16 17:43:54 -04:00
1 parent 6f1914c002
commit 49fab85291
6 files changed
+19 -20

No files matched your search

@@ -15,7 +15,7 @@ import noppes.npcs.constants.EnumPacketClient;
import noppes.npcs.containers.ContainerNPCBankInterface;
import noppes.npcs.controllers.BankController;
import noppes.npcs.entity.EntityNPCInterface;
import noppes.npcs.util.CustomNPCsScheduler;
import noppes.npcs.util.CustomNPCsThreader;
import java.util.HashMap;
@@ -100,7 +100,7 @@ public class BankData {
NoppesUtilServer.sendOpenGui(player, EnumGuiType.PlayerBankSmall, npc, slot, bank.id, 0);
}
final ItemStack item = currency;
CustomNPCsScheduler.runTack(() -> {
CustomNPCsThreader.runTack(() -> {
NBTTagCompound compound = new NBTTagCompound();
compound.setInteger("MaxSlots", bank.getMaxSlots());
compound.setInteger("UnlockedSlots", unlockedSlots);