Fix some of the event handlers
This commit is contained in:
parent
07fdaf8f5a
commit
4800e7dd6c
2 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,7 @@ import net.minecraftforge.common.ForgeSpawnEggItem;
|
|||
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingDropsEvent;
|
||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||
import net.minecraftforge.eventbus.api.EventPriority;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.items.ItemStackHandler;
|
||||
|
@ -40,7 +41,7 @@ import java.util.Random;
|
|||
public class EventHandler {
|
||||
|
||||
|
||||
@SubscribeEvent
|
||||
@SubscribeEvent (priority = EventPriority.HIGHEST)
|
||||
public static void playerDied(LivingDeathEvent event)
|
||||
{
|
||||
if(!(event.getEntity() instanceof Player))return;
|
||||
|
|
|
@ -2,7 +2,9 @@ package dev.zontreck.otemod.items;
|
|||
|
||||
import net.minecraft.world.InteractionHand;
|
||||
import net.minecraft.world.InteractionResultHolder;
|
||||
import net.minecraft.world.entity.monster.Guardian;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.entity.projectile.Arrow;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.Level;
|
||||
|
|
Reference in a new issue