<commit_before>package mcjty.rftoolsdim.items;

import mcjty.lib.varia.SoundTools;
import mcjty.rftoolsdim.config.GeneralConfiguration;
import mcjty.rftoolsdim.dimensions.dimlets.DimletRandomizer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.*;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.List;
import java.util.Random;

public class DimletParcelItem extends GenericRFToolsItem {
    public DimletParcelItem() {
        super("dimlet_parcel");
        setMaxStackSize(64);
    }

    private Random random = new Random();

    @Override
    public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) {<commit_msg>Dimlet parcel in off-hand no longer works (avoids problem with infinite dimlet parts)<commit_after>package mcjty.rftoolsdim.items;

import mcjty.lib.varia.SoundTools;
import mcjty.rftoolsdim.config.GeneralConfiguration;
import mcjty.rftoolsdim.dimensions.dimlets.DimletRandomizer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.*;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.List;
import java.util.Random;

public class DimletParcelItem extends GenericRFToolsItem {
    public DimletParcelItem() {
        super("dimlet_parcel");
        setMaxStackSize(64);
    }

    private Random random = new Random();

    @Override
    public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) {
        if (hand != EnumHand.MAIN_HAND) {
            return new ActionResult<>(EnumActionResult.PASS, stack);
        }
{'fraction_non_alphanumeric': 0.09395632300660234, 'fraction_numerical': 0.002031488065007618, 'mean_word_length': 5.0060975609756095, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '529282', 'n_tokens_mistral': 609, 'n_tokens_neox': 605, 'n_words': 121}