3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 15:20:11 +01:00
Paper/nms-patches/WorldGenWitchHut.patch

12 Zeilen
678 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/WorldGenWitchHut.java
+++ b/net/minecraft/server/WorldGenWitchHut.java
@@ -86,7 +86,7 @@
2018-08-26 04:00:00 +02:00
entitywitch.di();
2018-12-06 00:00:00 +01:00
entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
entitywitch.prepare(generatoraccess.getDamageScaler(new BlockPosition(j, i, k)), (GroupDataEntity) null, (NBTTagCompound) null);
2018-07-15 02:00:00 +02:00
- generatoraccess.addEntity(entitywitch);
+ generatoraccess.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
}
}