Try some stuff
This commit is contained in:
@@ -9,8 +9,8 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
import net.minecraft.registry.entry.RegistryEntry;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
import net.minecraft.util.ActionResult;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.TypedActionResult;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.event.GameEvent;
|
||||
|
||||
@@ -27,10 +27,10 @@ public class TrinketPolymerItem extends SimpleItem implements Trinket {
|
||||
}
|
||||
|
||||
@Override
|
||||
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand) {
|
||||
public ActionResult use(World world, PlayerEntity user, Hand hand) {
|
||||
ItemStack stack = user.getStackInHand(hand);
|
||||
if (equipItem(user, stack)) {
|
||||
return TypedActionResult.success(stack, world.isClient());
|
||||
return ActionResult.SUCCESS;
|
||||
}
|
||||
return super.use(world, user, hand);
|
||||
}
|
||||
|
Reference in New Issue
Block a user