mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 19:54:26 +00:00
OVERHAULED IGuiData FRAMEWORK SO ALL UPDATES WIRE THROUGH SyncController (deprecated legacy setGuiData)
This commit is contained in:
1 parent
7f63b64a66
commit
1a77728bcd
3 files changed
+110
-15
No files matched your search
@@ -22,6 +22,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import noppes.npcs.LogWriter;
|
||||
import noppes.npcs.client.ClientCacheHandler;
|
||||
import noppes.npcs.client.gui.util.IGuiData;
|
||||
import noppes.npcs.controllers.data.PlayerData;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -291,6 +292,9 @@ public class SyncController {
|
||||
}
|
||||
|
||||
ClientCacheHandler.updateClientRevision(syncType, revision);
|
||||
|
||||
// New GUI data handling approach
|
||||
IGuiData.notifyUpdate(compound, key, id);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -305,6 +309,9 @@ public class SyncController {
|
||||
}
|
||||
|
||||
ClientCacheHandler.updateClientRevision(syncType, revision);
|
||||
|
||||
// New GUI data handling approach
|
||||
IGuiData.notifyRemove(key, id);
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in new issue
Block a user