Skip to content

Commit

Permalink
1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Nxyi committed Mar 10, 2024
1 parent 7701de0 commit 40b30bb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'fabric-loom' version '1.1-SNAPSHOT'
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
Expand All @@ -25,7 +25,7 @@ configurations {
dependencies {

minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Meteor Client
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
org.gradle.jvmargs=-Xmx2G

# Fabric Properties (https://fabricmc.net/versions.html)
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.12
minecraft_version=1.20.4
yarn_version=1.20.4+build.3
loader_version=0.15.2

# Mod Properties
mod_version=1.0.6
Expand All @@ -13,4 +13,4 @@ archives_base_name=zewo2
# Dependencies

# Meteor (https://maven.meteordev.org/)
meteor_version=0.5.5
meteor_version=0.5.6
4 changes: 2 additions & 2 deletions src/main/java/com/dark/zewo2/commands/HologramCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
tag.putBoolean("Interpret", true);
tag.putBoolean("NoGravity", true);
tag.putBoolean("CustomNameVisible", true);
tag.putString("CustomName", Text.Serializer.toJson(Text.literal(message)));
tag.putString("CustomName", Text.Serialization.toJsonString(Text.literal(message)));
stack.setSubNbt("EntityTag", tag);
if (!mc.player.getAbilities().creativeMode) throw NOT_IN_CREATIVE.create();
mc.interactionManager.clickCreativeStack(stack, 36 + mc.player.getInventory().selectedSlot);
Expand All @@ -62,7 +62,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
tag.putBoolean("Interpret", true);
tag.putBoolean("NoGravity", true);
tag.putBoolean("CustomNameVisible", true);
tag.putString("CustomName", Text.Serializer.toJson(Text.literal(message)));
tag.putString("CustomName", Text.Serialization.toJsonString(Text.literal(message)));
tag.put("Pos", nbtList);
stack.setSubNbt("EntityTag", tag);
if (!mc.player.getAbilities().creativeMode) throw NOT_IN_CREATIVE.create();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dark/zewo2/modules/AutoL.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void OnPacket(PacketEvent.Receive event) {
String text = messages.get().get(Utils.random(0, messages.get().size()));

//replace syntax
text = text.replace("(target)", player.getEntityName());
text = text.replace("(target)", player.getGameProfile().getName());
text = text.replace("(target.coords)", player.getBlockPos().toString());

ChatUtils.sendPlayerMsg(text);
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/dark/zewo2/modules/Bookchat.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private void onchat(SendMessageEvent event){
String msg = event.message;
if (mc.player.getMainHandStack().getItem().equals(Items.WRITABLE_BOOK)){
event.cancel();
info(mc.player.getEntityName() + " : " + msg);
info(mc.player.getGameProfile().getName() + " : " + msg);
String encrypted = Base64.getEncoder().encodeToString(msg.getBytes());
mc.player.networkHandler.sendPacket(new BookUpdateC2SPacket(mc.player.getInventory().selectedSlot, Collections.singletonList(encrypted), Optional.empty()));
}
Expand All @@ -52,7 +52,7 @@ private void ontick(TickEvent.Pre event){
if (person.get().isEmpty()) return;
if(mc.world.getPlayers() == null) return;
for (PlayerEntity p : mc.world.getPlayers()){
if (p.getEntityName().equalsIgnoreCase(person.get())){
if (p.getGameProfile().getName().equalsIgnoreCase(person.get())){
playerEntity = p;
}
}
Expand All @@ -73,7 +73,7 @@ private void ontick(TickEvent.Pre event){
if (Objects.equals(lasttext, text)) return;

lasttext = text;
info(playerEntity.getEntityName() + " : " + decodedString);
info(playerEntity.getGameProfile().getName() + " : " + decodedString);
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/dark/zewo2/modules/SitModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void ontick(TickEvent.Pre event){
mc.player.setVelocity(0,0,0);

if (kickdelay <= 0) {
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(mc.player.getX(), mc.player.getY() - 0.04, mc.player.getZ(), mc.player.isOnGround()));
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(mc.player.getX(), mc.player.getHeight() - 0.04, mc.player.getZ(), mc.player.isOnGround()));
kickdelay = 25;
} else {
kickdelay--;
Expand Down

0 comments on commit 40b30bb

Please sign in to comment.