1.20.6 update
This commit is contained in:
@@ -30,11 +30,12 @@ public class ClientMixin {
|
||||
method = "<init>",
|
||||
at = @At("RETURN"))
|
||||
private void onReturn(RunArgs args, CallbackInfo ci) {
|
||||
ClientPlayNetworking.registerGlobalReceiver(OmegaConfig.CONFIG_SYNC_PACKET, (client, handler, buf, responseSender) -> {
|
||||
NbtCompound tag = buf.readNbt();
|
||||
ClientPlayNetworking.registerGlobalReceiver(OmegaConfig.SyncConfigPayload.ID, (payload, context) -> {
|
||||
|
||||
NbtCompound tag = payload.nbtCompound();
|
||||
savedClientConfig.clear();
|
||||
|
||||
client.execute(() -> {
|
||||
context.client().execute(() -> {
|
||||
if (tag != null && tag.contains("Configurations")) {
|
||||
NbtList list = tag.getList("Configurations", NbtType.COMPOUND);
|
||||
list.forEach(compound -> {
|
||||
|
||||
Reference in New Issue
Block a user