Skip to content

Commit

Permalink
UDOC-0 - Fix immediate problems with multiplayer (mod will no longer …
Browse files Browse the repository at this point in the history
…crash, but tweaks may not work as expected in servers)
  • Loading branch information
telvarost committed Jan 30, 2024
1 parent 8a1d335 commit 7fb2717
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=b1.7.3-build.2
loader_version=0.14.24-babric.1

# Mod Properties
mod_version=2.0.1
mod_version=2.0.2
maven_group=com.github.telvarost
archives_base_name=InventoryTweaks

Expand Down
30 changes: 0 additions & 30 deletions src/main/java/com/github/telvarost/inventorytweaks/ModHelper.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ private void inventoryTweaks_mouseReleasedOrSlotChanged(int mouseX, int mouseY,
/** - Distribute fewer items to slots whose max stack size will be filled */
do {
rerunLoop = false;
if (0 != numberOfSlotsRemainingToFill) {
if (0 < numberOfSlotsRemainingToFill) {
itemsPerSlot = leftClickRemainingItemAmount / numberOfSlotsRemainingToFill;

if (0 != itemsPerSlot)
Expand All @@ -675,7 +675,7 @@ private void inventoryTweaks_mouseReleasedOrSlotChanged(int mouseX, int mouseY,
}
}
}
} while (rerunLoop && 0 != numberOfSlotsRemainingToFill);
} while (rerunLoop && 0 < numberOfSlotsRemainingToFill);

/** - Distribute remaining items evenly over remaining slots that were not already filled to max stack size */
for (int distributeSlotsIndex = 0; distributeSlotsIndex < leftClickHoveredSlots.size(); distributeSlotsIndex++) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/inventorytweaks.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"package": "com.github.telvarost.inventorytweaks.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
"ContainerBaseMixin",
"PlayerMixin"
],
"server": [
],
"client": [
"ContainerBaseMixin",
"PlayerMixin",
"MinecraftAccessor"
],
"injectors": {
Expand Down

0 comments on commit 7fb2717

Please sign in to comment.