Skip to content

Commit

Permalink
Fix keybind not being registered (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Mar 7, 2025
1 parent ec4504d commit 7dab576
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 73 deletions.
51 changes: 0 additions & 51 deletions .github/scripts/test_no_error_reports

This file was deleted.

9 changes: 2 additions & 7 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
dependencies {



compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.7.8-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:VisualProspecting:1.3.28:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.7.29-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:VisualProspecting:1.4.2:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:Navigator:1.0.15:dev') { transitive = false }
compileOnly('curse.maven:journeymap-32274:5769353')
compileOnly('curse.maven:xaeros-minimap-263420:5637000')
compileOnly('curse.maven:xaeros-world-map-317780:5658209')


}
11 changes: 1 addition & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,13 @@ generateGradleTokenClass = com.muxiu1997.sharewhereiam.Tags
# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = VERSION

# [DEPRECATED] Mod ID replacement token.
gradleTokenModId =

# [DEPRECATED] Mod name replacement token.
gradleTokenModName =

# [DEPRECATED] Mod Group replacement token.
gradleTokenGroupName =

# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile =
# replaceGradleTokenInFile =

# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 2 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -206,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.36'
}


6 changes: 6 additions & 0 deletions src/main/java/com/muxiu1997/sharewhereiam/ShareWhereIAm.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;

@Mod(
Expand All @@ -25,6 +26,11 @@ public class ShareWhereIAm {
serverSide = "com.muxiu1997.sharewhereiam.proxy.CommonProxy")
public static CommonProxy proxy;

@Mod.EventHandler
public void init(FMLInitializationEvent event) {
proxy.init(event);
}

@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
Expand Down

0 comments on commit 7dab576

Please sign in to comment.