mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 12:11:47 +01:00
Use SpawnReason.DEFAULT instead of SpawnReason.CUSTOM, freeing CUSTOM to plugin spawning.
This gets used in case we are missing appropriate SpawnReason's for various Entity spawns.
This commit is contained in:
parent
e17d3ece00
commit
0026a08fa8
1 changed files with 1 additions and 1 deletions
|
@ -861,7 +861,7 @@ public class World implements IBlockAccess {
|
||||||
|
|
||||||
// CraftBukkit start - used for entities other than creatures
|
// CraftBukkit start - used for entities other than creatures
|
||||||
public boolean addEntity(Entity entity) {
|
public boolean addEntity(Entity entity) {
|
||||||
return this.addEntity(entity, SpawnReason.CUSTOM); // Set reason as Custom by default
|
return this.addEntity(entity, SpawnReason.DEFAULT); // Set reason as DEFAULT
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
|
public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
|
||||||
|
|
Loading…
Reference in a new issue