This commit is contained in:
parent
9d44d319d1
commit
22bfa12981
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user