geforkt von Mirrors/Paper
SPIGOT-2050: Add back code to only fire VehicleEnterEvent for loaded chunks.
Dieser Commit ist enthalten in:
Ursprung
6030bc464f
Commit
99f22a5c59
@ -381,7 +381,7 @@
|
|||||||
+
|
+
|
||||||
+ CraftEntity craft = (CraftEntity) entity.getBukkitEntity().getVehicle();
|
+ CraftEntity craft = (CraftEntity) entity.getBukkitEntity().getVehicle();
|
||||||
+ Entity orig = craft == null ? null : craft.getHandle();
|
+ Entity orig = craft == null ? null : craft.getHandle();
|
||||||
+ if (getBukkitEntity() instanceof Vehicle && entity.getBukkitEntity() instanceof LivingEntity) {
|
+ if (getBukkitEntity() instanceof Vehicle && entity.getBukkitEntity() instanceof LivingEntity && entity.world.isChunkLoaded((int) entity.locX >> 4, (int) entity.locZ >> 4, false)) { // Boolean not used
|
||||||
+ VehicleEnterEvent event = new VehicleEnterEvent(
|
+ VehicleEnterEvent event = new VehicleEnterEvent(
|
||||||
+ (Vehicle) getBukkitEntity(),
|
+ (Vehicle) getBukkitEntity(),
|
||||||
+ entity.getBukkitEntity()
|
+ entity.getBukkitEntity()
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren