11 Commits

Author SHA1 Message Date
Adam Macdonald
a2c9a3a000 Fix small typo in comment 2023-10-26 15:21:12 +01:00
Adam Macdonald
116b98edf0 Bump versions 2023-10-26 15:20:49 +01:00
Adam Macdonald
f7d3b293e7 Update .gitignore 2023-10-26 15:20:25 +01:00
Adam Macdonald
e402bd0749 Update Gradle wrapper scripts 2023-10-26 15:11:04 +01:00
Adam Macdonald
11dd1cf701 Rename logo.png -> icon.png 2023-06-08 01:54:20 +01:00
Adam Macdonald
1d18ffbe27 Update to Minecraft 1.20 2023-06-07 21:49:26 +01:00
Adam Macdonald
d7e5e2846f No more Gradle wrapper binaries :) 2023-05-31 16:59:14 +01:00
Adam Macdonald
e9bc7e34d5 Improve logo 2023-05-31 16:58:04 +01:00
Adam Macdonald
f6257060f0 Update to 1.19.4 and bump Fabric API version
Update for 1.19.4 and bump the API and mappings ahead of the 1.20
release! :)
2023-05-31 16:51:46 +01:00
Adam Macdonald
818c061195 Update to Gradle 8.1.1 2023-05-31 16:47:39 +01:00
Adam Macdonald
8a55f94d37 Update README 2023-03-29 19:30:50 +01:00
9 changed files with 22 additions and 18 deletions

7
.gitignore vendored
View File

@@ -3,9 +3,16 @@
# Ignore Gradle build output directory # Ignore Gradle build output directory
build/ build/
bin/
# Ignore run directory # Ignore run directory
run/ run/
# IntelliJ IDEA # IntelliJ IDEA
.idea/ .idea/
# Gradle wrapper binaries
gradle/wrapper/
# Remapped source file directory
remappedSrc/

View File

@@ -4,5 +4,4 @@ HotbarReplace is a Minecraft mod for the Fabric modding framework which replaces
### Known issues/Improvements ### Known issues/Improvements
* The mod won't refill your hotbar slot with other stacks in other hotbar slots
* Make the mod more resilient to network delay and packet loss (don't hardcode a 50 ms delay) * Make the mod more resilient to network delay and packet loss (don't hardcode a 50 ms delay)

View File

@@ -6,9 +6,9 @@ org.gradle.parallel=true
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.19.3 minecraft_version=1.20.2
yarn_mappings=1.19.3+build.5 yarn_mappings=1.20.2+build.4
loader_version=0.14.17 loader_version=0.14.24
# Mod Properties # Mod Properties
mod_version = 0.1.2 mod_version = 0.1.2
@@ -16,4 +16,4 @@ maven_group = io.github.twokilohertz.hotbarreplace
archives_base_name = HotbarReplace archives_base_name = HotbarReplace
# Dependencies # Dependencies
fabric_version=0.76.0+1.19.3 fabric_version=0.90.4+1.20.2

Binary file not shown.

View File

@@ -1,6 +0,0 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

12
gradlew vendored
View File

@@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# 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"'
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum
@@ -133,10 +130,13 @@ location of your Java installation."
fi fi
else else
JAVACMD=java 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 Please set the JAVA_HOME variable in your environment to match the
location of your Java installation." location of your Java installation."
fi
fi fi
# Increase the maximum file descriptors if we can. # Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
done done
fi 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; # Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in # shell script including quotes and variable substitutions, so put them in

View File

@@ -51,7 +51,7 @@ public class HotbarReplace implements ModInitializer {
client.interactionManager.clickSlot(player.currentScreenHandler.syncId, i, GLFW.GLFW_MOUSE_BUTTON_1, SlotActionType.PICKUP, player); client.interactionManager.clickSlot(player.currentScreenHandler.syncId, i, GLFW.GLFW_MOUSE_BUTTON_1, SlotActionType.PICKUP, player);
/* /*
Wait 50 seconds (on another thread) before attempting to move the new stack Wait 50 milliseconds (on another thread) before attempting to move the new stack
PlayerInventory.MAIN_SIZE added to the selected slot (hotbar slot) is the correct slot ID PlayerInventory.MAIN_SIZE added to the selected slot (hotbar slot) is the correct slot ID
*/ */
scheduler.schedule(() -> { scheduler.schedule(() -> {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -28,9 +28,9 @@
], ],
"depends": { "depends": {
"fabricloader": ">=0.14.17", "fabricloader": ">=0.14.21",
"fabric-api": "*", "fabric-api": "*",
"minecraft": "~1.19.3", "minecraft": "~1.20",
"java": ">=17" "java": ">=17"
} }
} }