mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
b3a8254758
By: md_5 <git@md-5.net>
20 lines
921 B
Diff
20 lines
921 B
Diff
--- a/net/minecraft/world/level/MobSpawnerAbstract.java
|
|
+++ b/net/minecraft/world/level/MobSpawnerAbstract.java
|
|
@@ -73,6 +73,7 @@
|
|
|
|
public void setMobName(EntityTypes<?> entitytypes) {
|
|
this.nextSpawnData.getEntity().setString("id", IRegistry.ENTITY_TYPE.getKey(entitytypes).toString());
|
|
+ this.spawnPotentials = MobSpawnerAbstract.EMPTY_POTENTIALS; // CraftBukkit - SPIGOT-3496, MC-92282
|
|
}
|
|
|
|
private boolean c(World world, BlockPosition blockposition) {
|
|
@@ -156,7 +157,7 @@
|
|
}
|
|
}
|
|
|
|
- if (!worldserver.addAllEntitiesSafely(entity)) {
|
|
+ if (!worldserver.addAllEntitiesSafely(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER)) { // CraftBukkit
|
|
this.d(worldserver, blockposition);
|
|
return;
|
|
}
|