aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <hi@notnite.com>2024-07-24 21:42:11 -0400
committerGitHub <noreply@github.com>2024-07-24 21:42:11 -0400
commit9f87ba4eecf3eecd5efe5355f23886c08e07a6d0 (patch)
tree0be406ac0b2cd2595232ca137348835f7178cb69
parent40c0e869ad1edd5524b409d50d8733003c4d0c31 (diff)
parent66cca351c3a0f49ceaf15b4b5052a619a1f39228 (diff)
downloadgloppers-main.tar.gz
gloppers-main.tar.bz2
gloppers-main.zip
Merge pull request #5 from HKS-HNS/mainHEADmain
1.21 Update
-rw-r--r--build.gradle10
-rw-r--r--gradle.properties8
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin62076 -> 43462 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties3
-rwxr-xr-x[-rw-r--r--]gradlew22
-rw-r--r--src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java4
-rw-r--r--src/main/resources/fabric.mod.json4
7 files changed, 28 insertions, 23 deletions
diff --git a/build.gradle b/build.gradle
index 7445bac..5c9a3c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,5 @@
plugins {
- id "fabric-loom" version "1.2-SNAPSHOT"
+ id "fabric-loom" version "1.7-SNAPSHOT"
id "com.modrinth.minotaur" version "2.+"
}
@@ -29,14 +29,14 @@ processResources {
}
tasks.withType(JavaCompile).configureEach {
- it.options.release = 17
+ it.options.release = 21
}
java {
withSourcesJar()
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
+ sourceCompatibility = JavaVersion.VERSION_21
+ targetCompatibility = JavaVersion.VERSION_21
}
jar {
@@ -51,6 +51,6 @@ modrinth {
projectId = "gloppers"
versionType = "release"
uploadFile = remapJar
- gameVersions = ["1.20.4"]
+ gameVersions = ["1.21"]
loaders = ["fabric", "quilt"]
}
diff --git a/gradle.properties b/gradle.properties
index 5b540a0..692aa94 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,10 +1,10 @@
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
-minecraft_version=1.20.4
-yarn_mappings=1.20.4+build.3
-loader_version=0.15.6
+minecraft_version=1.21
+yarn_mappings=1.21+build.9
+loader_version=0.15.11
-mod_version=1.0.2
+mod_version=1.0.3
maven_group=com.notnite
archives_base_name=gloppers
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index c1962a7..d64cd49 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 37aef8d..a441313 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
+validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index aeb74cb..1aa94a4 100644..100755
--- a/gradlew
+++ b/gradlew
@@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
fi
else
JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
+ fi
fi
# Increase the maximum file descriptors if we can.
@@ -141,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
- # shellcheck disable=SC3045
+ # shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
@@ -149,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
- # shellcheck disable=SC3045
+ # shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@@ -198,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-# Collect all arguments for the java command;
-# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
-# shell script including quotes and variable substitutions, so put them in
-# double quotes to make sure that they get re-expanded; and
-# * put everything else in single quotes, so that it's not re-expanded.
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_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.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
diff --git a/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java b/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java
index 7637cc8..d88e8bc 100644
--- a/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java
+++ b/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java
@@ -57,9 +57,9 @@ public abstract class HopperBlockEntityMixin {
// a static variable to keep track of what slot we're removing from.
@Redirect(
method = "insert",
- at = @At(value = "INVOKE", target = "Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;")
+ at = @At(value = "INVOKE", target = "Lnet/minecraft/block/entity/HopperBlockEntity;removeStack(II)Lnet/minecraft/item/ItemStack;")
)
- private static ItemStack insert$gloppersRemoveStack(Inventory instance, int slot, int amount) {
+ private static ItemStack insert$gloppersRemoveStack(HopperBlockEntity instance, int slot, int amount) {
dirtySlotState = slot;
return instance.getStack(slot);
}
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index b75428f..e023250 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -18,7 +18,7 @@
],
"depends": {
"fabricloader": ">=0.14.19",
- "minecraft": "~1.20",
- "java": ">=17"
+ "minecraft": "~1.21",
+ "java": ">=21"
}
}