Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

1.18.2 Update. Plus a fix. #35

Merged
merged 5 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.18.1
loader_version=0.12.11
minecraft_version=1.18.2
loader_version=0.13.3

# Mod Properties
core_version = 0.1.1
play_version = 0.1.3
maven_group = net.sorenon

# Dependencies
fabric_version=0.44.0+1.18
fabric_version=0.47.8+1.18.2
pehkui_version=3.0.0
joml_version=1.10.2
joml_version=1.10.2
2 changes: 1 addition & 1 deletion mcxr-core/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"mcxr-core.mixins.json"
],
"depends": {
"fabricloader": ">=0.12.6",
"fabricloader": ">=0.13.0",
"fabric": "*",
"minecraft": "1.18.x",
"java": ">=17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public static void pollActions() {
if (actionSet.sneak.changedSinceLastSync) {
Minecraft client = Minecraft.getInstance();
client.options.keyShift.setDown(actionSet.sneak.currentState);
if (client.player != null) {
client.player.setShiftKeyDown(true);
}
}
// if (actionSet.attackState.changedSinceLastSync()) {
// MinecraftClient client = MinecraftClient.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ void overwriteMovement(boolean slowDown, CallbackInfo ci) {
this.left = thumbstick.y() < 0;

this.jumping = XrInput.vanillaGameplayActionSet.jump.currentState;
if(slowDown) {
this.forwardImpulse = thumbstick.y() * 0.3f;
this.leftImpulse = -thumbstick.x() * 0.3f;
}
}
}
2 changes: 1 addition & 1 deletion mcxr-play/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"mcxr-play.compat.iris.mixins.json"
],
"depends": {
"fabricloader": ">=0.12.6",
"fabricloader": ">=0.13.0",
"fabric": "*",
"minecraft": "1.18.x",
"mcxr-core": ">=${core_version}",
Expand Down