mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
20 lines
1.3 KiB
Diff
20 lines
1.3 KiB
Diff
--- a/net/minecraft/server/WorldGenWitchHut.java
|
|
+++ b/net/minecraft/server/WorldGenWitchHut.java
|
|
@@ -85,7 +85,7 @@
|
|
entitywitch.setPersistent();
|
|
entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
|
|
entitywitch.prepare(generatoraccessseed, generatoraccessseed.getDamageScaler(new BlockPosition(j, i, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
- generatoraccessseed.addAllEntities(entitywitch);
|
|
+ generatoraccessseed.addAllEntities(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
|
}
|
|
}
|
|
|
|
@@ -107,7 +107,7 @@
|
|
entitycat.setPersistent();
|
|
entitycat.setPositionRotation((double) i + 0.5D, (double) j, (double) k + 0.5D, 0.0F, 0.0F);
|
|
entitycat.prepare(worldaccess, worldaccess.getDamageScaler(new BlockPosition(i, j, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
- worldaccess.addAllEntities(entitycat);
|
|
+ worldaccess.addAllEntities(entitycat, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
|
}
|
|
}
|
|
|