SyncController

This commit is contained in:
Kam committed 2025-01-30 09:26:10 -05:00
1 parent ee8527f261
commit fb496ce1e2
12 files changed
+24 -53

No files matched your search

@@ -1,6 +1,6 @@
package noppes.npcs.controllers;
import kamkeel.npcs.controllers.SyncMaster;
import kamkeel.npcs.controllers.SyncController;
import kamkeel.npcs.network.enums.EnumSyncType;
import net.minecraft.nbt.CompressedStreamTools;
import net.minecraft.nbt.NBTTagCompound;
@@ -157,7 +157,7 @@ public class FactionController implements IFactionHandler {
NBTTagCompound facCompound = new NBTTagCompound();
faction.writeNBT(facCompound);
SyncMaster.syncUpdate(EnumSyncType.FACTION, -1, facCompound);
SyncController.syncUpdate(EnumSyncType.FACTION, -1, facCompound);
saveFactions();
}
@@ -192,7 +192,7 @@ public class FactionController implements IFactionHandler {
} else {
this.saveFactions();
faction.id = -1;
SyncMaster.syncRemove(EnumSyncType.FACTION, id);
SyncController.syncRemove(EnumSyncType.FACTION, id);
return faction;
}
} else {