Skip to content

Commit

Permalink
1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Incandescent-Turtle committed Dec 27, 2024
1 parent 87e9deb commit 4940acb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation("me.shedaniel.cloth:cloth-config-fabric:15.0.130") {
modImplementation("me.shedaniel.cloth:cloth-config-fabric:11.1.136") {
exclude(group: "net.fabricmc.fabric-api")
}
modCompileOnly modRuntimeOnly("com.terraformersmc:modmenu:11.0.2") {
modCompileOnly modRuntimeOnly("com.terraformersmc:modmenu:7.2.2") {
exclude(group: "net.fabricmc.fabric-api")
}
}
Expand All @@ -50,7 +50,7 @@ processResources {
}
}

def targetJavaVersion = 21
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties - check these on https://fabricmc.net/develop
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.3
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.16.9

# Fabric API
fabric_version=0.103.0+1.21.1
fabric_version=0.92.2+1.20.1

# Mod Properties
mod_version=1.21.x-v1.1.1
mod_version=1.20.1-v2.0.0b
maven_group=mod.icy_turtle
archives_base_name=friendhighlighter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Mixin(ChatScreen.class)
public class ChatScreenMixin
{
@Inject(method = "keyPressed", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/ChatScreen;sendMessage(Ljava/lang/String;Z)V", shift = At.Shift.BEFORE))
@Inject(method = "keyPressed", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/ChatScreen;sendMessage(Ljava/lang/String;Z)Z", shift = At.Shift.BEFORE))
private void markChatSentTime(int keyCode, int scanCode, int modifiers, CallbackInfoReturnable<Boolean> cir)
{
FriendHighlighter.enterHitAt = System.currentTimeMillis();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class SleepingChatScreenMixin
{
// used to determine whether a command was send from chat or from list.
@Inject(method = "keyPressed", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/SleepingChatScreen;sendMessage(Ljava/lang/String;Z)V", shift = At.Shift.BEFORE))
@Inject(method = "keyPressed", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/SleepingChatScreen;sendMessage(Ljava/lang/String;Z)Z", shift = At.Shift.BEFORE))
private void markChatSentTime(int keyCode, int scanCode, int modifiers, CallbackInfoReturnable<Boolean> cir)
{
FriendHighlighter.enterHitAt = System.currentTimeMillis();
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "friendhighlighter",
"version": "1.1.1",
"version": "2.0.0b",

"name": "Friend Highlighter",
"description": "This is a mod allows you to highlight any entity through blocks, including players!",
Expand Down Expand Up @@ -37,11 +37,11 @@
"fabricloader": ">=0.15.11",
"fabric": "*",
"fabric-api": "*",
"minecraft": "1.21.*",
"java": ">=21"
"minecraft": "1.20.1",
"java": ">=17"
},
"suggests": {
"cloth-config-fabric": "15.0.130",
"modmenu": "11.0.2"
"cloth-config-fabric": "11.1.136",
"modmenu": "7.2.2"
}
}

0 comments on commit 4940acb

Please sign in to comment.