Skip to content

Commit

Permalink
Merge pull request #31 from kurrycat2004/1.20.4
Browse files Browse the repository at this point in the history
Update to 1.20.4
  • Loading branch information
notdevcody authored Jan 5, 2024
2 parents eb55945 + 2f0c9ef commit a426dd6
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 36 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ If you think that mpkmod should have a specific feature, encounter any bugs or i

### Supported versions

* [Forge](https://files.minecraftforge.net)
* [Forge](https://files.minecraftforge.net/)
- 1.8.9
- 1.19.4
- 1.20
* [Fabric](https://fabricmc.net/)
- 1.19.4
- 1.20
- 1.20.4

---

Expand Down Expand Up @@ -80,6 +80,8 @@ The landing mode is `Land` by default, which will compare the specified bounding

### Snapshots

**IMPORTANT: GitHub only displays artifacts if you are logged in** <br>
> [!IMPORTANT]
> GitHub only displays artifacts if you are logged in.
Go to [actions](https://github.com/kurrycat2004/MPKMod_2/actions/workflows/gradle.yml?query=is%3Asuccess+branch%3Amaster), click the build you want to download (first=newest) and scroll down to Artifacts.
The zip file (`mpkmod-build.DATE-TIME.zip`) will contain the mod jar for every supported version.
2 changes: 1 addition & 1 deletion fabric-1.19.4/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.parallel=true
# check these on https://fabricmc.net/develop
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.14.21
loader_version=0.15.3

#Fabric api
fabric_version=0.83.0+1.19.4
Expand Down
2 changes: 1 addition & 1 deletion fabric-1.19.4/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],

"depends": {
"fabricloader": ">=0.14.19",
"fabricloader": ">=0.15.3",
"fabric-api": "*",
"minecraft": "~1.19.4",
"java": ">=17"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20
yarn_mappings=1.20+build.1
yarn_mappings_version=1
loader_version=0.14.21
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.3

#Fabric api
fabric_version=0.83.0+1.20
fabric_version=0.92.0+1.20.4

jdkVersion=17
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4;


import io.github.kurrycat.mpkmod.compatibility.API;
import io.github.kurrycat.mpkmod.compatibility.MCClasses.Player;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin.KeyBindingAccessor;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin.KeyBindingAccessor;
import io.github.kurrycat.mpkmod.ticks.ButtonMS;
import io.github.kurrycat.mpkmod.ticks.ButtonMSList;
import io.github.kurrycat.mpkmod.util.Vector3D;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4;

import com.mojang.blaze3d.systems.RenderSystem;
import io.github.kurrycat.mpkmod.compatibility.MCClasses.*;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin.KeyBindingAccessor;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin.KeyBindingAccessor;
import io.github.kurrycat.mpkmod.gui.MPKGuiScreen;
import io.github.kurrycat.mpkmod.util.BoundingBox3D;
import io.github.kurrycat.mpkmod.util.Debug;
Expand Down Expand Up @@ -309,16 +309,16 @@ public void displayGuiScreen(MPKGuiScreen screen) {
MinecraftClient.getInstance().setScreen(
screen == null
? null
: new io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKGuiScreen(screen));
: new io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKGuiScreen(screen));
}

public String getCurrentGuiScreen() {
Screen curr = MinecraftClient.getInstance().currentScreen;

if (curr == null)
return null;
else if (curr instanceof io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKGuiScreen) {
String id = ((io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKGuiScreen) curr).eventReceiver.getID();
else if (curr instanceof io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKGuiScreen) {
String id = ((io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKGuiScreen) curr).eventReceiver.getID();
if (id == null)
id = "unknown";

Expand Down Expand Up @@ -397,7 +397,7 @@ public boolean setInputs(Float yaw, boolean relYaw, Float pitch, boolean relPitc
}

public boolean isF3Enabled() {
return MinecraftClient.getInstance().options.debugEnabled;
return MinecraftClient.getInstance().getDebugHud().shouldShowDebugHud();
}

public List<Integer> getPressedButtons() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4;

import io.github.kurrycat.mpkmod.compatibility.API;
import io.github.kurrycat.mpkmod.compatibility.MCClasses.Profiler;
Expand Down Expand Up @@ -76,11 +76,11 @@ public boolean charTyped(char c, int modifiers) {
}

@Override
public boolean mouseScrolled(double mouseX, double mouseY, double delta) {
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
eventReceiver.onMouseScroll(
new Vector2D(mouseX, mouseY),
(int) (MathUtil.constrain(delta, -1, 1) * 7)
(int) (MathUtil.constrain(verticalAmount, -1, 1) * 7)
);
return super.mouseScrolled(mouseX, mouseY, delta);
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4;

import io.github.kurrycat.mpkmod.compatibility.API;
import io.github.kurrycat.mpkmod.compatibility.MCClasses.KeyBinding;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin;

import io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKMod;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKMod;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin;

import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin;

import io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKMod;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKMod;
import net.minecraft.client.Keyboard;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin;

import io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKMod;
import io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKMod;
import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin;
package io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin;

import io.github.kurrycat.mpkmod.compatibility.API;
import net.minecraft.client.Mouse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"environment": "client",
"entrypoints": {
"main": [
"io.github.kurrycat.mpkmod.compatibility.fabric_1_20.MPKMod"
"io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.MPKMod"
]
},
"mixins": [
"mpkmod.mixins.json"
],

"depends": {
"fabricloader": ">=0.14.21",
"fabricloader": ">=0.15.3",
"fabric-api": "*",
"minecraft": "~1.20",
"minecraft": "~1.20.4",
"java": ">=17"
},
"suggests": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "io.github.kurrycat.mpkmod.compatibility.fabric_1_20.mixin",
"package": "io.github.kurrycat.mpkmod.compatibility.fabric_1_20_4.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
],
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ if (!System.env.JITPACK) {
include 'forge-1.19.4'
include 'fabric-1.19.4'
include 'forge-1.20'
include 'fabric-1.20'
include 'fabric-1.20.4'
}

0 comments on commit a426dd6

Please sign in to comment.