File tree Expand file tree Collapse file tree
java/dev/terminalmc/clientsort Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252- Added a screen-class blacklist to allow disabling buttons on certain modded screens.
5353- Fixed an issue causing certain items with data to always be sorted to the end.
5454- Fixed a crash when pressing ` Open Editor ` key if also bound to ` Drop Selected Item ` .
55+ - Fixed an issue causing server-accelerated ops to not trigger refresh events.
5556
5657## 3.102.5 [ 2026-07-04]
5758
Load diff This file was deleted.
Original file line number Diff line number Diff line change 2020import dev .terminalmc .clientsort .exception .PayloadHandlerException ;
2121import dev .terminalmc .clientsort .exception .PayloadHandlerException .InconsistentStateException ;
2222import dev .terminalmc .clientsort .exception .PayloadHandlerException .InvalidDataException ;
23- import dev .terminalmc .clientsort .mixin .accessor .ContainerAccessor ;
2423import dev .terminalmc .clientsort .network .handler .validate .PayloadResult ;
2524import dev .terminalmc .clientsort .platform .services .PlatformServices ;
2625import net .minecraft .network .protocol .common .custom .CustomPacketPayload ;
@@ -110,9 +109,8 @@ public static void processPayload(
110109 } finally {
111110 if (menu != null ) {
112111 menu .resumeRemoteUpdates ();
113- menu .broadcastChanges ();
114- ((ContainerAccessor ) menu .slots .getFirst ().container ).clientsort$setChanged ();
115- ((ContainerAccessor ) menu .slots .getLast ().container ).clientsort$setChanged ();
112+ menu .slotsChanged (menu .slots .getFirst ().container );
113+ menu .slotsChanged (menu .slots .getLast ().container );
116114 }
117115 if (PlatformServices .getInstance ().canSendToPlayer (player , responseType )) {
118116 PlatformServices .getInstance ()
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ private static void transfer(
9191
9292 if (srcStack .isEmpty ())
9393 continue ;
94+ if (!srcSlot .mayPlace (srcStack ))
95+ continue ;
9496
9597 // Nonempty stack found; work forwards from the start of the
9698 // destination array, looking for a partial stack of the same item
@@ -105,6 +107,8 @@ private static void transfer(
105107 continue ;
106108 if (!ItemStack .isSameItemSameComponents (srcStack , dstStack ))
107109 continue ;
110+ if (!dstSlot .mayPlace (srcStack ))
111+ continue ;
108112
109113 // Matching partial stack found
110114
Original file line number Diff line number Diff line change 88 "minVersion" : " ${mixinextras_version_min}"
99 },
1010 "mixins" : [
11- " accessor.ContainerAccessor" ,
1211 " accessor.ServerCommonPacketListenerImplAccessor" ,
1312 " slot.SlotMixin"
1413 ],
You can’t perform that action at this time.
0 commit comments