Fix mod screen shift click client crash (fixes GH-7)

This commit is contained in:
Cynthia Foxwell 2024-03-23 16:22:12 -06:00
parent 4bd0b79875
commit 845257d5d2
2 changed files with 1 additions and 4 deletions

View file

@ -27,9 +27,6 @@ public class ScreenHandlerTransformer implements ClassNodeTransformer {
var LSlot = L(Slot);
var DefaultedList = slash(resolver.mapClassName(namespace, "net.minecraft.class_2371"));
//var LDefaultedList = L(DefaultedList);
//var slots = resolver.mapFieldName(namespace, name, "field_7761", LDefaultedList);
int ordinal = 0;

View file

@ -60,7 +60,7 @@ public class BagSlot extends Slot {
}
@Override
public void setStack(ItemStack stack) {
public void setStackNoCallbacks(ItemStack stack) {
if (enabled && this.inventory != null) {
this.inventory.setStack(this.index, stack);
this.markDirty();