mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-25 06:14:22 +00:00
- TC Eldritch Challenge: <init>
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user