From cebb8b6d940d12540e3ccecf85dc464bf24eb73d Mon Sep 17 00:00:00 2001 From: lc-1337 <62835225+lc-1337@users.noreply.github.com> Date: Sun, 7 Jun 2026 14:17:15 +0300 Subject: [PATCH] fix Ctrl scroll to zero (#67) --- dependencies.gradle | 3 +-- .../vfyjxf/nee/network/packet/PacketStackCountChange.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 1019d03..8c09e23 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -8,13 +8,12 @@ dependencies { implementation("com.github.GTNewHorizons:WirelessCraftingTerminal:1.12.14:dev") implementation("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.5.76-gtnh:dev") - compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.461:dev") { transitive = false } + compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.584:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:Avaritia:1.96:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:Avaritiaddons:1.9.4-GTNH:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:BuildCraftCompat:7.1.20:dev") { transitive = false } compileOnly('com.github.GTNewHorizons:EnderIO:2.10.25:dev') {transitive=false} compileOnly("com.github.GTNewHorizons:ForestryMC:4.11.14:dev") { transitive = false } - compileOnly("com.github.GTNewHorizons:GTplusplus:1.12.11:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:ThaumicEnergistics:1.7.45-GTNH:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:Botania:1.13.16-GTNH:dev") { transitive = false } compileOnly("com.gregoriust.gregtech:gregtech_1.7.10:6.14.23:dev") { transitive = false } diff --git a/src/main/java/com/github/vfyjxf/nee/network/packet/PacketStackCountChange.java b/src/main/java/com/github/vfyjxf/nee/network/packet/PacketStackCountChange.java index 68fc042..4255689 100644 --- a/src/main/java/com/github/vfyjxf/nee/network/packet/PacketStackCountChange.java +++ b/src/main/java/com/github/vfyjxf/nee/network/packet/PacketStackCountChange.java @@ -74,7 +74,7 @@ public class PacketStackCountChange implements IMessage { if (aes != null) { final IAEStack newAes = aes.copy(); final Int2ObjectMap> temp = new Int2ObjectOpenHashMap<>(); - newAes.setStackSize(Math.max(1, aes.getStackSize()) + message.getChangeCount()); + newAes.setStackSize(Math.max(1, aes.getStackSize() + message.getChangeCount())); temp.put(message.getSlotIndex(), newAes); cpt.receiveSlotStacks(message.getStorageName(), temp); }