Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioFinale committed Jun 25, 2021
1 parent 7a4901d commit 07f4023
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions out/production/VillagerSaver/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: VillagerSaver
<<<<<<< HEAD
<<<<<<< HEAD
version: 1.1.6
=======
version: 1.1.5
>>>>>>> parent of 688c16c (Minor changes)
=======
version: 1.1.5
>>>>>>> parent of 688c16c (Minor changes)
author: MarioFinale
main: cl.mariofinale.villagerSaver
api-version: 1.13
Expand Down
9 changes: 9 additions & 0 deletions src/cl/mariofinale/VillagerSaver_Listener.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event){
Entity tKiller = event.getDamager();
if (!(tVillager.getHealth() - event.getDamage() <= 0)) return;
if (!(tVillager.getType() == EntityType.VILLAGER)) return;
<<<<<<< HEAD
<<<<<<< HEAD
if (!((tKiller.getType() == EntityType.ZOMBIE) || (tKiller.getType() == EntityType.ZOMBIE_VILLAGER) || (tKiller.getType() == EntityType.DROWNED) || (tKiller.getType() == EntityType.HUSK))) return;
if (villagerSaver.WorldBlackList.contains(tVillager.getWorld().getName())) return;
Expand Down Expand Up @@ -236,6 +237,14 @@ public void StoreAndClearVillager(Entity villager){ //CALLED WHEN A VILLAGER IS
event.setCancelled(true);
}

=======
if (!((tKiller.getType() == EntityType.ZOMBIE) || (tKiller.getType() == EntityType.ZOMBIE_VILLAGER) || (tKiller.getType() == EntityType.DROWNED) || (tKiller.getType() == EntityType.HUSK) || (tKiller.getType() == EntityType.ZOMBIFIED_PIGLIN))) return;
if (villagerSaver.WorldBlackList.contains(tVillager.getWorld().getName())) return;
handleSpawnZombieVillager(tVillager);
event.setCancelled(true);
}

>>>>>>> parent of 688c16c (Minor changes)
public void handleSpawnZombieVillager(LivingEntity entityliving) {
CraftVillager craftVillager = (CraftVillager) entityliving;
Entity vehicle = craftVillager.getVehicle();
Expand Down

0 comments on commit 07f4023

Please sign in to comment.