2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/WorldGenVillagePieces.java
|
|
|
|
+++ b/net/minecraft/server/WorldGenVillagePieces.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -1662,14 +1662,14 @@
|
|
|
|
entityzombievillager.prepare(generatoraccess.getDamageScaler(new BlockPosition(entityzombievillager)), (GroupDataEntity) null, (NBTTagCompound) null);
|
2016-11-17 02:41:03 +01:00
|
|
|
entityzombievillager.setProfession(this.c(i1, 0));
|
2018-08-26 04:00:00 +02:00
|
|
|
entityzombievillager.di();
|
2018-07-15 02:00:00 +02:00
|
|
|
- generatoraccess.addEntity(entityzombievillager);
|
|
|
|
+ generatoraccess.addEntity(entityzombievillager, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
2016-06-09 03:43:49 +02:00
|
|
|
} else {
|
2018-07-15 02:00:00 +02:00
|
|
|
EntityVillager entityvillager = new EntityVillager(generatoraccess.getMinecraftWorld());
|
2016-06-09 03:43:49 +02:00
|
|
|
|
|
|
|
entityvillager.setPositionRotation((double) j1 + 0.5D, (double) k1, (double) l1 + 0.5D, 0.0F, 0.0F);
|
2018-07-15 02:00:00 +02:00
|
|
|
entityvillager.setProfession(this.c(i1, generatoraccess.m().nextInt(6)));
|
|
|
|
entityvillager.a(generatoraccess.getDamageScaler(new BlockPosition(entityvillager)), (GroupDataEntity) null, (NBTTagCompound) null, false);
|
|
|
|
- generatoraccess.addEntity(entityvillager);
|
|
|
|
+ generatoraccess.addEntity(entityvillager, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
2016-06-09 03:43:49 +02:00
|
|
|
}
|
2015-02-26 23:41:06 +01:00
|
|
|
}
|
|
|
|
|