Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
SPIGOT-4673: EntitySpawnEvent should not be called for players
Dieser Commit ist enthalten in:
Ursprung
51100db821
Commit
4c8327f721
@ -388,7 +388,7 @@ public class CraftEventFactory {
|
|||||||
event = CraftEventFactory.callProjectileLaunchEvent(entity);
|
event = CraftEventFactory.callProjectileLaunchEvent(entity);
|
||||||
} else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
|
} else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
|
||||||
event = CraftEventFactory.callVehicleCreateEvent(entity);
|
event = CraftEventFactory.callVehicleCreateEvent(entity);
|
||||||
} else {
|
} else if (!(entity instanceof EntityPlayer)) {
|
||||||
event = CraftEventFactory.callEntitySpawnEvent(entity);
|
event = CraftEventFactory.callEntitySpawnEvent(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren