aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java')
-rw-r--r--src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java31
1 files changed, 10 insertions, 21 deletions
diff --git a/src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java b/src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java
index 160b384150..7a93cbbeb7 100644
--- a/src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java
+++ b/src/main/java/gtPlusPlus/plugin/villagers/VillagerEventHandler.java
@@ -1,8 +1,9 @@
package gtPlusPlus.plugin.villagers;
+import net.minecraftforge.event.entity.EntityJoinWorldEvent;
+
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import gtPlusPlus.core.util.Utils;
-import net.minecraftforge.event.entity.EntityJoinWorldEvent;
public class VillagerEventHandler {
@@ -16,26 +17,14 @@ public class VillagerEventHandler {
@SubscribeEvent
public void onEntityJoinWorld(EntityJoinWorldEvent event) {
- /*try {
- if (event.entity != null && event.entity instanceof EntityLivingBase && event.entity instanceof EntityVillager){
- EntityVillager entity = (EntityVillager) event.entity;
- World world = entity.worldObj;
- int profession = entity.getProfession();
- if (world != null && (profession >= 7735 && profession <= 7737)){
- EntityBaseVillager mNew = new EntityBaseVillager(world, profession);
- mNew.copyLocationAndAnglesFrom(entity);
- if (mNew != null) {
- world.removeEntity(entity);
- world.spawnEntityInWorld(mNew);
- }
- }
-
- }
- }
- catch (Throwable t) {
- t.printStackTrace();
- return;
- }*/
+ /*
+ * try { if (event.entity != null && event.entity instanceof EntityLivingBase && event.entity instanceof
+ * EntityVillager){ EntityVillager entity = (EntityVillager) event.entity; World world = entity.worldObj; int
+ * profession = entity.getProfession(); if (world != null && (profession >= 7735 && profession <= 7737)){
+ * EntityBaseVillager mNew = new EntityBaseVillager(world, profession); mNew.copyLocationAndAnglesFrom(entity);
+ * if (mNew != null) { world.removeEntity(entity); world.spawnEntityInWorld(mNew); } } } } catch (Throwable t) {
+ * t.printStackTrace(); return; }
+ */
}
}