Files
CatServer/patches/net/minecraft/world/gen/structure/ComponentScatteredFeaturePieces.java.patch
2020-05-06 05:37:07 +08:00

12 lines
781 B
Diff

--- ../src-base/minecraft/net/minecraft/world/gen/structure/ComponentScatteredFeaturePieces.java
+++ ../src-work/minecraft/net/minecraft/world/gen/structure/ComponentScatteredFeaturePieces.java
@@ -773,7 +773,7 @@
entitywitch.enablePersistence();
entitywitch.setLocationAndAngles((double)l + 0.5D, (double)i1, (double)k + 0.5D, 0.0F, 0.0F);
entitywitch.onInitialSpawn(worldIn.getDifficultyForLocation(new BlockPos(l, i1, k)), (IEntityLivingData)null);
- worldIn.spawnEntity(entitywitch);
+ worldIn.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN);
}
}