Archiviert
13
0

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.
Dieser Commit ist enthalten in:
feildmaster 2012-04-14 01:44:01 -05:00
Ursprung e17d3ece00
Commit 0026a08fa8

Datei anzeigen

@ -861,7 +861,7 @@ public class World implements IBlockAccess {
// CraftBukkit start - used for entities other than creatures
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