Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Prevent (Entity) null to be added to the entity list.
Dieser Commit ist enthalten in:
Ursprung
16d3b705c5
Commit
38ad0ea5fd
@ -866,6 +866,8 @@ public class World implements IBlockAccess {
|
||||
|
||||
public boolean addEntity(Entity entity, SpawnReason spawnReason) { // Changed signature, added SpawnReason
|
||||
// CraftBukkit end
|
||||
if (entity == null) return false;
|
||||
|
||||
int i = MathHelper.floor(entity.locX / 16.0D);
|
||||
int j = MathHelper.floor(entity.locZ / 16.0D);
|
||||
boolean flag = false;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren