3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-17 20:10:10 +01:00
Paper/nms-patches/MobSpawnerAbstract.patch

20 Zeilen
1.0 KiB
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/MobSpawnerAbstract.java
+++ b/net/minecraft/server/MobSpawnerAbstract.java
2018-07-15 02:00:00 +02:00
@@ -41,6 +41,7 @@
2018-07-15 02:00:00 +02:00
public void setMobName(EntityTypes<?> entitytypes) {
this.spawnData.b().setString("id", ((MinecraftKey) EntityTypes.REGISTRY.b(entitytypes)).toString());
+ this.mobs.clear(); // CraftBukkit - SPIGOT-3496, MC-92282
}
2018-07-15 02:00:00 +02:00
private boolean h() {
@@ -110,7 +111,7 @@
((EntityInsentient) entity).prepare(world.getDamageScaler(new BlockPosition(entity)), (GroupDataEntity) null, (NBTTagCompound) null);
2016-02-29 22:32:46 +01:00
}
2018-07-15 02:00:00 +02:00
- ChunkRegionLoader.a(entity, (GeneratorAccess) world);
+ ChunkRegionLoader.a(entity, (GeneratorAccess) world, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER); // CraftBukkit
2016-02-29 22:32:46 +01:00
world.triggerEffect(2004, blockposition, 0);
if (entityinsentient != null) {
entityinsentient.doSpawnEffect();