Fix mod screen shift click client crash (fixes GH-7)
This commit is contained in:
parent
4bd0b79875
commit
845257d5d2
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue