diff --git a/changelog.md b/changelog.md
index 0914d3d3..e7e4282a 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,15 @@
+------------------------------------------------------
+Version 0.4.1
+------------------------------------------------------
+**Fixes**
+- Fixed instant crash when a player went below zero in a world with customized height limits
+- Somewhat fixed pathfinding outside of default height limits
+
+------------------------------------------------------
+Version 0.4.0
+------------------------------------------------------
+Updated to Minecraft 1.17
+
------------------------------------------------------
Version 0.3.7
------------------------------------------------------
diff --git a/gradle.properties b/gradle.properties
index 90648ff2..f4c0a9f8 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -15,14 +15,14 @@
# along with Baritone. If not, see .
#
mod_name = Automatone
-mod_version = 0.4.0
+mod_version = 0.4.1
maven_group = io.github.ladysnake
-minecraft_version=1.17-pre1
-yarn_mappings=1.17-pre1+build.1
-loader_version=0.11.3
-fabric_version = 0.34.8+1.17
-cca_version = 3.0.0-nightly.1.17-pre1
-reach_version = 2.0.2
+minecraft_version=1.17.1
+yarn_mappings=1.17.1+build.10
+loader_version=0.11.6
+fabric_version = 0.37.0+1.17
+cca_version = 3.1.1
+reach_version = 2.1.1
changelog_url = https://github.com/Ladysnake/Automatone/blob/main/changelog.md
\ No newline at end of file
diff --git a/src/main/java/baritone/AutomatoneClient.java b/src/main/java/baritone/AutomatoneClient.java
index 16f8a26a..5ea8d855 100644
--- a/src/main/java/baritone/AutomatoneClient.java
+++ b/src/main/java/baritone/AutomatoneClient.java
@@ -81,7 +81,7 @@ public void onInitializeClient() {
WorldRenderEvents.BEFORE_DEBUG_RENDER.register(AutomatoneClient::onRenderPass);
ClientPlayNetworking.registerGlobalReceiver(ClickCommand.OPEN_CLICK_SCREEN, (client, handler, buf, responseSender) -> {
UUID uuid = buf.readUuid();
- client.execute(() -> MinecraftClient.getInstance().openScreen(new GuiClick(uuid)));
+ client.execute(() -> MinecraftClient.getInstance().setScreen(new GuiClick(uuid)));
});
ClientPlayNetworking.registerGlobalReceiver(FakePlayers.SPAWN_PACKET_ID, (client, handler, buf, responseSender) -> {
int id = buf.readVarInt();
@@ -120,7 +120,7 @@ private
void spawnPlayer(int id,
assert world != null;
@SuppressWarnings("unchecked") EntityType
playerType = (EntityType
) entityTypeId;
P other = FakeClientPlayerEntity.createClientFakePlayer(playerType, world, new GameProfile(uuid, name));
- other.setEntityId(id);
+ other.setId(id);
other.setPosition(x, y, z);
other.updateTrackedPosition(x, y, z);
other.bodyYaw = headYaw;