3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00
Paper/nms-patches/WorldGenWitchHut.patch

12 Zeilen
746 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/WorldGenWitchHut.java
+++ b/net/minecraft/server/WorldGenWitchHut.java
2019-04-23 04:00:00 +02:00
@@ -85,7 +85,7 @@
entitywitch.setPersistent();
2018-12-06 00:00:00 +01:00
entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
2020-06-25 02:00:00 +02:00
entitywitch.prepare(generatoraccessseed, generatoraccessseed.getDamageScaler(new BlockPosition(j, i, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
- generatoraccessseed.addEntity(entitywitch);
+ generatoraccessseed.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
2018-07-15 02:00:00 +02:00
}
}