Fix game freezing when trying to shift click an item in the dictionary when a target is already selected
package mekanism.common.inventory.container.item;
-import javax.annotation.Nonnull;
import mekanism.common.item.ItemDictionary;
import mekanism.common.registries.MekanismContainerTypes;
-import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
-import net.minecraft.inventory.container.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.Hand;
@@ -24,11 +21,4 @@ public class DictionaryContainer extends MekanismItemContainer {
protected int getInventoryYOffset() {
return super.getInventoryYOffset() + 5;
}
-
- @Nonnull
- @Override
- public ItemStack quickMoveStack(@Nonnull PlayerEntity player, int slotID) {
- Slot slot = slots.get(slotID);
- return slot == null ? ItemStack.EMPTY : slot.getItem();
- }
}
\ No newline at end of file
