mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 14:23:48 -07:00
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/MobSpawnerAbstract.java
|
||||
+++ b/net/minecraft/server/MobSpawnerAbstract.java
|
||||
@@ -41,6 +41,7 @@
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
public void setMobName(EntityTypes<?> entitytypes) {
|
||||
this.spawnData.b().setString("id", IRegistry.ENTITY_TYPE.getKey(entitytypes).toString());
|
||||
@@ -8,12 +8,12 @@
|
||||
}
|
||||
|
||||
private boolean h() {
|
||||
@@ -110,7 +111,7 @@
|
||||
((EntityInsentient) entity).prepare(world.getDamageScaler(new BlockPosition(entity)), (GroupDataEntity) null, (NBTTagCompound) null);
|
||||
}
|
||||
@@ -147,7 +148,7 @@
|
||||
}
|
||||
|
||||
- ChunkRegionLoader.a(entity, (GeneratorAccess) world);
|
||||
+ ChunkRegionLoader.a(entity, (GeneratorAccess) world, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER); // CraftBukkit
|
||||
world.triggerEffect(2004, blockposition, 0);
|
||||
if (entityinsentient != null) {
|
||||
entityinsentient.doSpawnEffect();
|
||||
private void a(Entity entity) {
|
||||
- if (this.a().addEntity(entity)) {
|
||||
+ if (this.a().addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER)) { // CraftBukkit
|
||||
Iterator iterator = entity.getPassengers().iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
|
Reference in New Issue
Block a user