2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/MobSpawnerAbstract.java
|
|
|
|
+++ b/net/minecraft/world/level/MobSpawnerAbstract.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -73,6 +73,7 @@
|
2017-08-08 04:46:59 +02:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public void setMobName(EntityTypes<?> entitytypes) {
|
2021-06-11 07:00:00 +02:00
|
|
|
this.nextSpawnData.getEntity().setString("id", IRegistry.ENTITY_TYPE.getKey(entitytypes).toString());
|
|
|
|
+ this.spawnPotentials = MobSpawnerAbstract.EMPTY_POTENTIALS; // CraftBukkit - SPIGOT-3496, MC-92282
|
2017-08-08 04:46:59 +02:00
|
|
|
}
|
2018-07-15 02:00:00 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
private boolean c(World world, BlockPosition blockposition) {
|
|
|
|
@@ -156,7 +157,7 @@
|
2020-08-11 23:00:00 +02:00
|
|
|
}
|
2021-06-11 07:00:00 +02:00
|
|
|
}
|
2016-02-29 22:32:46 +01:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
- if (!worldserver.addAllEntitiesSafely(entity)) {
|
|
|
|
+ if (!worldserver.addAllEntitiesSafely(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER)) { // CraftBukkit
|
|
|
|
this.d(worldserver, blockposition);
|
|
|
|
return;
|
|
|
|
}
|