1.17 pog (#12)
* 1.17? * event bus monke * coding on da github * fixes fixes bruh * fixes again * lazy fix to worklow actions * fix gradle.yml
This commit is contained in:
@@ -16,8 +16,8 @@ import minegame159.meteorclient.utils.misc.Keybind;
|
||||
import net.minecraft.client.render.debug.DebugRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.StringTag;
|
||||
import net.minecraft.nbt.NbtCompound;
|
||||
import net.minecraft.nbt.NbtString;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Optional;
|
||||
@@ -98,12 +98,12 @@ public class InteractionMenu extends Module {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompoundTag toTag() {
|
||||
CompoundTag tag = super.toTag();
|
||||
public NbtCompound toTag() {
|
||||
NbtCompound tag = super.toTag();
|
||||
|
||||
CompoundTag messTag = new CompoundTag();
|
||||
NbtCompound messTag = new NbtCompound();
|
||||
messages.keySet().forEach((key) -> {
|
||||
messTag.put(key, StringTag.of(messages.get(key)));
|
||||
messTag.put(key, NbtString.of(messages.get(key)));
|
||||
});
|
||||
|
||||
tag.put("messages", messTag);
|
||||
@@ -111,10 +111,10 @@ public class InteractionMenu extends Module {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Module fromTag(CompoundTag tag) {
|
||||
public Module fromTag(NbtCompound tag) {
|
||||
|
||||
if (tag.contains("messages")) {
|
||||
CompoundTag msgs = tag.getCompound("messages");
|
||||
NbtCompound msgs = tag.getCompound("messages");
|
||||
msgs.getKeys().forEach((key) -> {
|
||||
messages.put(key, msgs.getString(key));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user