Skip to content

Commit a878420

Browse files
committed
- fix duplication bug
1 parent 406c4ac commit a878420

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
## v1.1.30 (1.20.1)
2-
- fixed stun translations
3-
- fixed tags beeing broken
4-
- fixed aileron compat
5-
- adjusted shift clicking logic for armor slots
1+
## v1.1.31 (1.20.1)
2+
- fixed craftingslot behaviour

common/src/main/java/smartin/miapi/client/gui/crafting/CraftingScreenHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,15 @@ public ItemStack quickMove(PlayerEntity player, int index) {
399399

400400
if (slot != null && slot.hasStack()) {
401401
ItemStack itemStack2 = slot.getStack();
402-
if (index == 36) {
402+
if (index == 36 || index > 41) {
403403
//case 1: tool slot to player
404404
slot.onTakeItem(player, itemStack2);
405405
//attempt armor slots
406406
if (!this.insertItem(itemStack2, 37, 41, true)) {
407407
this.insertItem(itemStack2, 0, 36, true);
408408
}
409409

410-
if (blockEntity != null) {
410+
if (index == 36 && blockEntity != null) {
411411
blockEntity.setItem(itemStack2);
412412
if (notClient()) blockEntity.saveAndSync();
413413
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G
33
minecraft_version=1.20.1
44

55
archives_base_name=Truly-Modular-miapi
6-
mod_version=1.1.30
6+
mod_version=1.1.31
77
maven_group=smartin
88
mod_id=miapi
99
credits=KawataroTB, Nytifx, Ace, Beniven, Repeat, RPGLordLight and others

0 commit comments

Comments
 (0)