Expanded SyncController scope to allow syncing based on string operation keys instead of just int ids (i.e ability keys)

This commit is contained in:
bigguy345 committed 2026-04-02 00:24:15 +02:00
1 parent 22de352dd9
commit facee7c388
5 files changed
+84 -44

No files matched your search

@@ -640,7 +640,7 @@ public class NoppesUtilServer {
playerdata.save();
}
if (pl != null) {
SyncController.syncPlayer((EntityPlayerMP) pl);
SyncController.dispatchSyncForAllTypes((EntityPlayerMP) pl);
}
sendPlayerData(type, player, name);
}
@@ -1229,7 +1229,7 @@ public class NoppesUtilServer {
playerdata.save();
if (pl != null) {
SyncController.syncPlayer((EntityPlayerMP) pl);
SyncController.dispatchSyncForAllTypes((EntityPlayerMP) pl);
}
}
@@ -1261,7 +1261,7 @@ public class NoppesUtilServer {
playerdata.save();
if (pl != null) {
SyncController.syncPlayer((EntityPlayerMP) pl);
SyncController.dispatchSyncForAllTypes((EntityPlayerMP) pl);
}
}
}
@@ -260,6 +260,7 @@ public class ServerEventsHandler {
SyncType.WORKBENCH_RECIPES,
EnumSyncAction.RELOAD,
-1,
null,
SyncController.getCurrentServerRevision(SyncType.WORKBENCH_RECIPES),
WorkbenchRecipeSyncHandler.getInstance().serializeAll()
), (EntityPlayerMP) player);
@@ -269,6 +270,7 @@ public class ServerEventsHandler {
SyncType.CARPENTRY_RECIPES,
EnumSyncAction.RELOAD,
-1,
null,
SyncController.getCurrentServerRevision(SyncType.CARPENTRY_RECIPES),
CarpentryRecipeSyncHandler.getInstance().serializeAll()
), (EntityPlayerMP) player);