1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2024-12-22 06:25:15 +01:00
Commit graph

63 commits

Author SHA1 Message Date
Bjarne Koll
d0dcd7d251
Fix incorrect invulnerability damage reduction ()
Fixes incorrect spigot handling of the invulnerability damage
reduction applied when an already invulnerable entity is damaged with a
larger damage amount than the initial damage.
Vanilla still damages entities even if invulnerable if the damage to be
applied is larger than the previous damage taken. In that case, vanilla
applies the difference between the previous damage taken and the
proposed damage.

Spigot's damage modifier API takes over the computation of damage
reducing effects, however spigot invokes this handling with the initial
damage before computing the difference to the previous damage amount.
This leads to the reduction values to generally be larger than expected,
as they are computed on the not-yet-reduced value.
Spigot applies these reductions after calling the EntityDamageEvent and
*then* subtracts the previous damage point, leading to the final damage
amount being smaller than expected.

This patch cannot simply call the EntityDamageEvent with the reduced
damage, as that would lead to EntityDamageEvent#getDamage() returning
the already reduced damage, which breaks its method contract.
Instead, this patch makes use of the DamageModifier API, implementing
the last-damage-reduction as a DamageModifier.
2024-11-19 11:54:58 +01:00
Mart
e619744fbd
Allow skipping of world symlink validation () 2024-08-16 22:36:30 +02:00
granny
54a23403da
check if itemstack is stackable first () 2024-03-03 10:37:00 -08:00
Md5Lukas
b4e3b3d1dd
Allow non-op players to execute the click event callback () 2023-08-28 13:21:13 +02:00
aerulion
b29ecd4c22
Expose clicked BlockFace during BlockDamageEvent () 2023-08-22 13:07:18 +10:00
Nacioszeczek
1dfdbef42b
SculkCatalyst bloom API () 2023-08-13 01:31:32 +02:00
Ollie
17966ddb8e
Update the server logo ()
Co-authored-by: Bjarne Koll <lynxplay101@gmail.com>
2023-06-16 16:20:31 +01:00
Jakub Zacek
f7717c3712
Fix server ignoring fallback for translatable components () 2023-04-20 08:05:41 +01:00
Emily
beed22d336
Undo making JavaPlugin#logger field public () 2023-04-19 16:46:09 +01:00
Luke Chambers
dd216c1f09
Fix Inconsistencies with Paper Plugin Names () 2023-04-16 11:49:13 -05:00
Redned
8be7a60b76
Fix getBrightness and getRawBrightness throwing exception in BlockStateListPopulator () 2023-04-10 10:06:49 +02:00
Jakubk15
062028941f
Do not send plugin headers when it is not required () 2023-02-22 17:59:42 -06:00
Denery
309133e2e1
Fix preemptive connection dropping during shutdown process () 2022-11-27 11:20:31 -06:00
Kezz
44bb5992ce
Add Tick TemporalUnit () 2022-11-25 15:05:42 -06:00
Fruxz
32998864c7
[ci skip] Add TheFruxz to the license MIT list () 2022-11-19 21:20:21 +01:00
vytskalt
58483c1e18
Add fire-tick-delay option () 2022-10-22 17:57:09 -05:00
Nick Hensel
f8742e26cc
Also load resources from LibraryLoader () 2022-09-20 02:07:03 +01:00
Nassim Jahnke
d60497ebf2
Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
ff64962b SPIGOT-7124: MapPalette.getColor(0) returns the wrong color

CraftBukkit Changes:
8f3647242 SPIGOT-7127: /say doesn't work from console
2022-08-01 16:01:20 +02:00
Pedro
31f01379ce
Add configurable height for slime spawn per world () 2022-01-10 18:27:16 -08:00
Noah van der Aa
e955cb5b26
Hide unnecessary itemmeta from clients ()
Co-authored-by: Nassim Jahnke <jahnke.nassim@gmail.com>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2021-11-30 14:47:10 -08:00
MiniDigger
b395c374ac my patches are still MIT btw
gpl is evil!
2021-11-30 19:26:33 +01:00
Kyle Wood
f25facb302
Update email & name (DenWav)
Also I think I prefer my few tiny patches to be GPL.
2021-07-19 21:07:53 -05:00
Nassim Jahnke
351a2c38b5
Drop no longer needed patch () 2021-07-07 19:18:05 +02:00
LemonCaramel
b7976b9568
Add More Lidded Block API () 2021-05-25 20:05:03 +02:00
Owen1212055
2c5f8085ea
Remove boat interaction event (Fixes ) 2021-05-16 11:08:31 +01:00
MeFisto94
cd6ae8816e
Add a "Should Burn in Sunlight" API for Phantoms and Skeletons () 2021-05-14 13:09:30 +00:00
Andrew Steinborn
8cec462a5f
[CI-SKIP] Remove Astei from the MIT list ()
* Remove myself from the MIT list

I acknowledge that prior patches will not be retroactively relicensed (which is desirable).

* Fix typo
2021-05-05 09:17:14 +02:00
Spottedleaf
d80e43647d
[CI-SKIP] Removal from the MIT list ()
Any future work I do will be under GPLv3. This doesn't affect current patches.
2021-03-12 00:36:30 +00:00
Bjarne Koll
26be708f45 Remove streams from SensorNearest
The behavioural nearby sensors are validated every tick on the entities
that registered the respective sensors and are therefore a good subject
to performance improvements.

More specifically this commit replaces the Stream#filter usage with
ArrayList#removeIf as the removeIf method on an array list is heavily
optimized towards a single internal array re-allocation without any
further overhead on the removeIf call.

The only negative of this change is the rather agressive diff these
patches introduce as the methods are basically being reimplemented
compared to the previous stream-based implementation.

See: https://nipafx.dev/java-stream-performance/
Note: Updated LICENCE.md to release this commit under MIT
2021-03-03 20:26:44 +01:00
Camotoy
06900aef5e
Fix username connecting with no texture being overwritten by usercache () 2021-03-01 21:06:05 +00:00
Ivan Pekov
0514fc4e2d Add missing effects 2021-01-30 21:53:52 +01:00
Jake Potrebic
4a7962cd13 Zombie API - breaking doors 2021-01-03 16:18:13 +01:00
KennyTV
2a44498a54 Add PlayerItemCooldownEvent 2020-12-02 21:26:12 +01:00
ysl3000
07bca94f71 Create HoverEvent from ItemStack Entity
add myself to MIT list

Co-authored-by: Mariell <proximyst@proximyst.com>
Co-authored-by: MiniDigger <admin@minidigger.me>
2020-08-31 12:27:30 +02:00
Josh Roy
11de41c777
Add API MinecraftServer#isStopping () 2020-04-11 01:51:35 -04:00
Spottedleaf
942ff3c28e
My patches are under MIT ()
* My patches are under MIT

Remove ambiguity between my patches on Tuinity and here.
2020-04-11 01:48:34 -04:00
DoNotSpamPls
0c74d4575c Change the reserved channel check to be sensible () 2018-11-30 19:08:31 -05:00
Rick
0305af2c14 Fix view distance API () 2018-09-09 14:38:27 -04:00
Gergely Sarkozi
2d45ec855f Cached, local-class-supporting task names ()
Fixes issue  

`MapMaker#weakKeys()` makes the `Map` use identity comparison for the keys, while also enabling the automatical removal of dropped classes from the cache.

The changes are the same as in , except now the original patch is modified instead of a new one being created.
2018-09-03 10:04:50 -04:00
miclebrick
b369e70970
Add 5 second short dumps to watchdog () 2018-08-08 15:58:02 -05:00
Aikar
009031a21f
Bring some 1.13 authors to master 2018-07-23 21:09:25 -04:00
Hugo Manrique
ab5c87e570 Avoid item merge if stack size above max stack size () 2018-07-19 10:51:55 -05:00
kashike
a35f46d455
[ci-skip] Revert "Add Turqmelon to MIT file ()" ()
This reverts commit d0134e38de.
2018-04-17 11:20:03 -07:00
Devon T
d0134e38de Add Turqmelon to MIT file () 2018-04-17 13:02:49 -04:00
stonar96
233e0d7495 [CI-SKIP] Add stonar96 to MIT list () 2018-04-16 15:28:52 -07:00
Y. Lin
90c7126e18 [CI-SKIP] Add vemacs to MIT list ()
Somebody pinged me on Telegram and said I should do this
2018-03-11 12:16:52 -07:00
Brokkonaut
e0c0fa5682 [CI-SKIP] Add Brokkonaut to MIT list () 2018-03-10 19:38:50 -08:00
MiniDigger
09692269ca Toggleable player crits, helps mitigate hacked clients. ()
This is a port of https://github.com/PaperMC/Paper/blob/ver/1.8.8/Spigot-Server-Patches/0040-Toggleable-player-crits-helps-mitigate-hacked-client.patch
Also adds me to the MIT list.
2018-03-09 23:14:47 -05:00
BillyGalbreath
3da0c30cd1 [CI-SKIP] Add BillyGalbreath to MIT list () 2018-03-09 12:00:48 -05:00
Techcable
6773b4f1bc [CI-SKIP] Add Techcable to MIT list () 2018-03-09 11:59:59 -05:00