0.1.5 RC 1
All checks were successful
Java CI with Gradle / build (push) Successful in 15m58s

This commit is contained in:
Adam 2025-04-24 20:09:42 +01:00
parent 9d44d319d1
commit 22bfa12981
3 changed files with 6 additions and 8 deletions

View File

@ -8,7 +8,7 @@ yarn_mappings=1.21.5+build.1
loader_version=0.16.13
# Mod Properties
mod_version = 0.1.4
mod_version = 0.1.5
maven_group = xyz.twokilohertz
archives_base_name = HotbarReplace

View File

@ -23,7 +23,7 @@ public class HotbarReplace implements ClientModInitializer {
@Override
public void onInitializeClient() {
LOGGER.info("HotbarReplace v0.1.4 initialised");
LOGGER.info("HotbarReplace v0.1.5 initialised");
}
public static void tryReplaceSlot(PlayerEntity player, Hand hand, Item item) {
@ -57,11 +57,9 @@ public class HotbarReplace implements ClientModInitializer {
int slot = (hand == Hand.OFF_HAND ? 9 : inventory.getSelectedSlot());
scheduler.schedule(() -> {
client.interactionManager.clickSlot(player.currentScreenHandler.syncId,
scheduler.schedule(() -> client.interactionManager.clickSlot(player.currentScreenHandler.syncId,
slot + PlayerInventory.MAIN_SIZE, GLFW.GLFW_MOUSE_BUTTON_1,
SlotActionType.PICKUP, player);
}, click_delay_ms, TimeUnit.MILLISECONDS);
SlotActionType.PICKUP, player), click_delay_ms, TimeUnit.MILLISECONDS);
return;
}

View File

@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "hotbarreplace",
"version": "0.1.4",
"version": "0.1.5",
"name": "HotbarReplace",
"description": "Replace blocks in your hotbar when you run out with blocks from your inventory",
"authors": [