Skip to content

Commit 85c44fe

Browse files
committed
update to 1.20.2
1 parent e61049d commit 85c44fe

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

.github/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ A DiamondFire utility client for advanced coding.
1212

1313
A Fabric 1.20 mod for coding more efficiently with utility features including but not limited to:
1414
* Automatically placing templates in inventory
15-
* Rendering only the plot you are currently coding in
1615
* Moving faster in codespace
1716
* A palette with all the actions
1817

@@ -22,10 +21,11 @@ A Fabric 1.20 mod for coding more efficiently with utility features including bu
2221
3. Move the downloaded mod files into the mods folder located at .minecraft/mods.
2322
4. Launch the game and try it out on [DiamondFire](mcdiamondfire.com).
2423

24+
## Useful Info
25+
There's a [discord](https://discord.gg/NqU6XnyVPA) for CodeClient, and a helpful [wiki](https://github.com/DFOnline/CodeClient/wiki)
26+
2527
## Versions
2628
* [1.20 (latest)](https://github.com/DFOnline/CodeClient/releases/latest)
27-
* [1.19.4](https://github.com/DFOnline/CodeClient/releases/tag/v71)
28-
* [1.19.3](https://github.com/DFOnline/CodeClient/releases/tag/v48)
2929

3030
## Contributing
3131

gradle.properties

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
## Check these on https://fabricmc.net/develop/
6-
minecraft_version=1.20.1
7-
yarn_mappings=1.20.1+build.9
8-
loader_version=0.14.21
6+
minecraft_version=1.20.2
7+
yarn_mappings=1.20.2+build.4
8+
loader_version=0.14.24
99

1010
# Mod Properties
1111
mod_version=1.5.7
1212
maven_group=dev.dfonline
1313
archives_base_name=CodeClient
1414

1515
# Dependencies
16-
fabric_version=0.85.0+1.20.1
17-
modmenu_version=6.1.0-rc.4
18-
yacl_version=3.0.1+1.20
16+
fabric_version=0.90.7+1.20.2
17+
modmenu_version=8.0.0
18+
yacl_version=3.3.0-beta.1+1.20.2

src/main/java/dev/dfonline/codeclient/dev/DevInventory/DevInventoryScreen.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ public DevInventoryScreen(PlayerEntity player) {
7272

7373
public void handledScreenTick() {
7474
super.handledScreenTick();
75-
if (this.searchBox != null) {
76-
this.searchBox.tick();
77-
}
75+
// if (this.searchBox != null) {
76+
// this.searchBox.tick();
77+
// }
7878
}
7979

8080
protected void onMouseClick(@Nullable Slot slot, int slotId, int button, SlotActionType actionType) {
8181
if(slot == null) return;
82-
this.searchBox.setCursorToEnd();
82+
this.searchBox.setCursorToEnd(false);
8383
this.searchBox.setSelectionEnd(0);
8484

8585
if(slot == this.deleteItemSlot) {
@@ -129,7 +129,7 @@ protected void init() {
129129
setSelectedTab(6);
130130
if(Config.getConfig().FocusSearch)
131131
searchBox.setFocused(true);
132-
searchBox.setCursorToEnd();
132+
searchBox.setCursorToEnd(false);
133133
searchBox.setSelectionEnd(0);
134134
this.client.player.playerScreenHandler.removeListener(this.listener);
135135
this.listener = new CreativeInventoryListener(this.client);
@@ -276,7 +276,7 @@ private void populate() {
276276
}
277277

278278
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
279-
this.renderBackground(context);
279+
this.renderBackground(context, mouseX, mouseY, delta);
280280
super.render(context, mouseX, mouseY, delta);
281281

282282
Integer hoveredGroup = getGroupFromMouse(mouseX,mouseY);
@@ -348,7 +348,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
348348
if(CodeClient.MC.options.chatKey.matchesKey(keyCode,scanCode) || CodeClient.editBind.matchesKey(keyCode,scanCode)) {
349349
if(keyCode == GLFW.GLFW_KEY_Y) setSelectedTab(SEARCH.getIndex());
350350
searchBox.setFocused(true);
351-
searchBox.setCursorToEnd();
351+
searchBox.setCursorToEnd(false);
352352
searchBox.setSelectionEnd(0);
353353
ignoreNextKey = true;
354354
return true;
@@ -387,7 +387,7 @@ protected void drawBackground(DrawContext context, float delta, int mouseX, int
387387
else context.drawTexture(TEXTURE, scrollbarX, scrollbarY + (95 * (int) (this.scrollPosition * 9) / (scrollHeight)), 232, 0, 12, 15);
388388
}
389389
else {
390-
if(this.client != null && this.client.player != null) InventoryScreen.drawEntity(context, this.x + 88, this.y + 45, 20, (float)(this.x + 88 - mouseX), (float)(this.y + 45 - 30 - mouseY), this.client.player);
390+
if(this.client != null && this.client.player != null) InventoryScreen.drawEntity(context, this.x + 73, this.y + 6, this.x + 105, this.y + 49, 20, 0.0625F, (float)mouseX, (float)mouseY, this.client.player);
391391
}
392392

393393
}

src/main/java/dev/dfonline/codeclient/dev/overlay/ChestPeeker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static <T extends PacketListener> boolean handlePacket(Packet<T> packet)
9898
if(slot.getSlot() != 1) return false;
9999
CodeClient.MC.getNetworkHandler().sendPacket(new CreativeInventoryActionC2SPacket(1,ItemStack.EMPTY));
100100
shouldClearChest = false;
101-
NbtCompound nbt = slot.getItemStack().getNbt();
101+
NbtCompound nbt = slot.getStack().getNbt();
102102
if(nbt == null) return false;
103103
NbtCompound bet = nbt.getCompound("BlockEntityTag");
104104
if(bet == null) return false;

src/main/java/dev/dfonline/codeclient/mixin/entity/MEntity.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ private void onMove(MovementType movementType, Vec3d movement, CallbackInfo ci)
3737
}
3838
}
3939

40-
@Inject(method = "wouldPoseNotCollide", at = @At("HEAD"), cancellable = true)
41-
private void wouldPoseNotCollide(EntityPose pose, CallbackInfoReturnable<Boolean> cir) {
42-
if(NoClip.isIgnoringWalls() && this.getId() == CodeClient.MC.player.getId()) {
43-
cir.setReturnValue(true);
44-
}
45-
}
40+
// @Inject(method = "wouldPoseNotCollide", at = @At("HEAD"), cancellable = true)
41+
// private void wouldPoseNotCollide(EntityPose pose, CallbackInfoReturnable<Boolean> cir) {
42+
// if(NoClip.isIgnoringWalls() && this.getId() == CodeClient.MC.player.getId()) {
43+
// cir.setReturnValue(true);
44+
// }
45+
// }
4646
}

src/main/java/dev/dfonline/codeclient/mixin/network/MClientPlayNetworkHandler.java src/main/java/dev/dfonline/codeclient/mixin/network/MClientCommonPlayNetworkHandler.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package dev.dfonline.codeclient.mixin.network;
22

33
import dev.dfonline.codeclient.CodeClient;
4-
import net.minecraft.client.network.ClientPlayNetworkHandler;
4+
import net.minecraft.client.network.ClientCommonNetworkHandler;
55
import net.minecraft.network.packet.Packet;
66
import org.spongepowered.asm.mixin.Mixin;
77
import org.spongepowered.asm.mixin.injection.At;
88
import org.spongepowered.asm.mixin.injection.Inject;
99
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1010

11-
@Mixin(ClientPlayNetworkHandler.class)
12-
public abstract class MClientPlayNetworkHandler {
11+
@Mixin(ClientCommonNetworkHandler.class)
12+
public abstract class MClientCommonPlayNetworkHandler {
1313
@Inject(method = "sendPacket", at = @At("HEAD"), cancellable = true)
1414
private void sendPacket(Packet<?> packet, CallbackInfo ci) {
1515
if(CodeClient.onSendPacket(packet)) ci.cancel();

src/main/java/dev/dfonline/codeclient/mixin/render/hud/MTitleScreen.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MTitleScreen {
1616
@Inject(method = "init", at = @At("RETURN"))
1717
public void onInit(CallbackInfo ci) {
1818
if(CodeClient.autoJoin == CodeClient.AutoJoin.GAME) {
19-
ServerInfo info = new ServerInfo("DiamondFire", Config.getConfig().AutoNode.prepend + "mcdiamondfire.com", false);
19+
ServerInfo info = new ServerInfo("DiamondFire", Config.getConfig().AutoNode.prepend + "mcdiamondfire.com", ServerInfo.ServerType.OTHER);
2020
ConnectScreen.connect((TitleScreen)(Object)this, CodeClient.MC, ServerAddress.parse(info.address), info, true);
2121

2222
CodeClient.autoJoin =Config.getConfig().AutoJoinPlot ? CodeClient.AutoJoin.PLOT : CodeClient.AutoJoin.NONE;

src/main/resources/CodeClient.mixins.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"entity.player.MClientPlayerInteractionManager",
1414
"entity.player.MPlayerEntity",
1515
"network.MClientConnection",
16-
"network.MClientPlayNetworkHandler",
16+
"network.MClientCommonPlayNetworkHandler",
1717
"render.MChunkRendererRegion",
1818
"render.MDebugRenderer",
1919
"render.hud.MDrawContext",

0 commit comments

Comments
 (0)