Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fix skin rendering by @forkiesassds in https://github.com/js6pak/mojangfix/pull/16
- Fix container offset when swapping items to hotbar slots
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.24-babric.1

# Mod Properties
mod_version = 0.5.3
mod_version = 0.5.4
maven_group = pl.js6pak
archives_base_name = mojangfix

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 js6pak
* Copyright (C) 2022-2024 js6pak
*
* This file is part of MojangFix.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 js6pak
* Copyright (C) 2022-2024 js6pak
*
* This file is part of MojangFix.
*
Expand Down Expand Up @@ -103,10 +103,12 @@ private void onKeyPressed(char character, int keyCode, CallbackInfo ci) {
this.minecraft.interactionManager.clickSlot(this.container.syncId, slot.id, 0, false, this.minecraft.player);
}

if (keyCode >= Keyboard.KEY_1 && keyCode <= Keyboard.KEY_9) {
if ( (null != this.container.slots)
&& (10 <= this.container.slots.size())
) {
if (this.minecraft.player.inventory.getCursorStack() == null)
this.minecraft.interactionManager.clickSlot(this.container.syncId, slot.id, 0, false, this.minecraft.player);
this.minecraft.interactionManager.clickSlot(this.container.syncId, 35 + keyCode - 1, 0, false, this.minecraft.player);
this.minecraft.interactionManager.clickSlot(this.container.syncId, (this.container.slots.size() - 10) + keyCode - 1, 0, false, this.minecraft.player);
this.minecraft.interactionManager.clickSlot(this.container.syncId, slot.id, 0, false, this.minecraft.player);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 js6pak
* Copyright (C) 2022-2024 js6pak
*
* This file is part of MojangFix.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 js6pak
* Copyright (C) 2022-2024 js6pak
*
* This file is part of MojangFix.
*
Expand Down