- TC Eldritch Challenge: <init>

This commit is contained in:
HellFirePvP committed 2015-11-07 21:14:18 +01:00
1 parent d2c432404b
commit acb2f07f45
11 files changed
+240 -38

No files matched your search

@@ -3,9 +3,12 @@ package makeo.gadomancy.common.events;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import makeo.gadomancy.common.familiar.FamiliarAIController;
import makeo.gadomancy.common.utils.world.TCMazeHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.event.entity.EntityEvent;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent;
import net.minecraftforge.event.entity.player.PlayerEvent;
/**
* This class is part of the Gadomancy Mod
@@ -31,4 +34,11 @@ public class EventHandlerEntity {
}
}
@SubscribeEvent
public void on(LivingDeathEvent event) {
if(!event.entity.worldObj.isRemote && event.entityLiving instanceof EntityPlayer) {
TCMazeHandler.closeSession((EntityPlayer) event.entityLiving, false);
}
}
}