13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft/world/entity
Lucavon a89e4e6ae3 Configurable projectile relative velocity
This patch adds an option "disable relative projectile velocity", which, when
enabled, will cause projectiles to ignore the shooter's current velocity,
like they did in Minecraft 1.8 and prior.
If a player is falling, for example, their shooting range will be drastically
reduced, as a downwards velocity is applied to the projectile. This prevents
players from saving themselves from falling off floating islands, for example,
as a thrown ender pearl will not make it back to the island, while it would
have in 1.8.

While this could easily be done with plugins, too, there are multiple problems:
P1) If multiple plugins cancel the velocity by subtracting the shooter's velocity
from the projectile's velocity, the projectile's velocity would be different.
As there's no way to detect whether the projectile's velocity has already been
adjusted to ignore the player's velocity, plugins can't not do it if it's not
necessary.
P2) I've noticed some inconsistencies, e.g. weird velocity when shooting while
using an elytra. Checking for those inconsistencies is possible, but not as
efficient as just not applying the velocity in the first place.
P3) Solutions for 1) and especially 2) might not be future-proof, while this
server-internal fix makes this change future-proof.
2019-07-23 20:29:20 -05:00
..
ai Prevent various interactions from causing chunk loads 2018-09-10 23:56:36 -04:00
ambient Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
animal Turtle API 2018-09-29 16:08:23 -05:00
boss EnderDragon Events 2018-07-21 01:51:27 -05:00
decoration Fix sounds when item frames are modified (MC-123450) 2019-04-27 20:00:43 +01:00
item PlayerAttemptPickupItemEvent 2017-06-11 16:30:30 -05:00
monster force entity dismount during teleportation 2018-11-15 13:38:37 +00:00
npc PreCreatureSpawnEvent 2018-01-14 17:01:31 -05:00
player force entity dismount during teleportation 2018-11-15 13:38:37 +00:00
projectile Configurable projectile relative velocity 2019-07-23 20:29:20 -05:00
raid Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
vehicle LootTable API and replenishable lootables 2016-05-01 21:19:14 -04:00
AgeableMob.java.patch Honor EntityAgeable.ageLock 2018-09-23 20:59:53 -05:00
AreaEffectCloud.java.patch Entity Activation Range 2024-11-02 18:16:11 +11:00
ConversionParams.java.patch Add EntityZapEvent 2016-10-16 23:19:30 -07:00
ConversionType.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Entity.java.patch Fixes and additions to the spawn reason API 2019-03-24 00:24:52 -04:00
EntitySelector.java.patch Configurable Player Collision 2016-04-13 02:10:49 -04:00
EntityType.java.patch Fixes and additions to the spawn reason API 2019-03-24 00:24:52 -04:00
ExperienceOrb.java.patch Fix NBT type issues 2018-08-03 00:04:54 -04:00
Interaction.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ItemBasedSteering.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Leashable.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
LightningBolt.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
LivingEntity.java.patch force entity dismount during teleportation 2018-11-15 13:38:37 +00:00
Mob.java.patch Improve death events 2018-08-21 01:39:35 +01:00
NeutralMob.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
OminousItemSpawner.java.patch Fixes and additions to the spawn reason API 2019-03-24 00:24:52 -04:00
PathfinderMob.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
TamableAnimal.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00