Commit graph

2035 commits

Author SHA1 Message Date
Lulu13022002
938557e97b [ci skip] Correct upstream/paper javadoc (#8286) 2023-03-31 06:09:13 +02:00
Nassim Jahnke
3332f2f67e 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:
9153f77e PR-841: Remove incorrect ClickType.CONTROL_DROP from ClickType#isShiftClick
bceda6ab PR-840: Adjust annotations in Display entity interface
a6b85ac3 PR-835: Add Jukebox#hasRecord() and #startPlaying(), clarify #setRecord()

CraftBukkit Changes:
e142fb9fd SPIGOT-7188: ChunkSnapshot biome y coordinate doesn't match chunk biome y coord
eff1743b9 SPIGOT-7313: More accurately edit data on Jukeboxes
2023-03-30 15:40:15 +02:00
Riley Park
206fbf627d Make other link in deprecation message clickable too 2023-03-29 19:35:13 -07:00
Jake Potrebic
799da8e341 Fix crash relating to bad recipes in furnace-like tile entities (#9011) 2023-03-29 19:29:38 -07:00
Riley Park
d6d0bad512 Turn deprecation message into a Component to be used in the command at a later date 2023-03-29 19:11:50 -07:00
Riley Park
90a88fcc04 8948: Nag when timings is enabled or a plugin creates a new Timing 2023-03-29 12:11:36 -07:00
Jake Potrebic
7c76b259a5 Fix api checking banned ips (#9026) 2023-03-27 20:23:34 -07:00
Nassim Jahnke
afa3115148 Deprecate public Timings classes for removal (#8949) 2023-03-28 04:58:46 +02:00
Ryan
06eb9f83ec Fix PluginMeta#getDisplayName (#9038)
* fix plugin versioning

* fix properly

* fix version command

* ngl idk where my logic was behind this
2023-03-27 22:56:09 -04:00
Jason Penilla
8e509e0179 Fix chat messages being logged without formatting to console (#9058) 2023-03-27 10:19:23 -07:00
Jake Potrebic
cac66ac3cb Updated Upstream (CraftBukkit) (#9053)
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

CraftBukkit Changes:
f92c94517 SPIGOT-7310: PlayerToggleSneakEvent is not called when a player sneaks while riding an entity
b5714184d SPIGOT-7316: Cancelling EntityUnmountEvent does not stop the all effects of the unmounting
e237f8c88 SPIGOT-7312: Entity#setVisibleByDefault on player causes skin reset on this player client
2023-03-26 13:29:41 -07:00
Jake Potrebic
75975263ef Fix beehives generating from using bonemeal (#9052) 2023-03-26 12:07:32 -07:00
Emily
4e30130da0 Expose Path to jar file in PluginProviderContext (#9030)
* Expose Path to jar file in PluginProviderContext

* rename accessor, reword jd
2023-03-25 03:30:48 -03:00
Jake Potrebic
5326cb65f0 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#9018)
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:
2c64d8c4 SPIGOT-7309: Add API for jukebox inventories
a6d7e4ca PR-826: Add Sniffer API

CraftBukkit Changes:
93813509b SPIGOT-7309: Add API for jukebox inventories
2d5209e8d PR-1153: Handle teleport reason in spreadplayers command
f5b61387e SPIGOT-7308: Fix NullPointerException when calling Jukebox#setRecord()
388d458a6 SPIGOT-7306: Fix reset of coords in default teleportTo in EntityPlayer
40b87e1af PR-1150: Add Sniffer API and handle EntityItemDropEvent

Spigot Changes:
6ad4b93c SPIGOT-7298: Fix debug stick always permission left click toggle
2023-03-24 13:38:40 -07:00
Jake Potrebic
02d5cb7b2b Don't warn for deprecated PrepareGrindstoneEvent (#9036) 2023-03-24 13:19:17 -07:00
Jake Potrebic
0adc18baf8 [ci skip] rebuild patches 2023-03-23 14:57:03 -07:00
Riley Park
39255145b6 chore: cleanup annotations in api adventure patch 2023-03-23 09:49:24 -07:00
Nassim Jahnke
c4351787c6 Fix bad diff in wandering trader spawn rate patch from .4 update 2023-03-23 14:35:17 +01:00
Jake Potrebic
5ea4ace885 [ci skip] Properly document firing of Entity/BlockExplodeEvent (#9014) 2023-03-20 02:11:23 -07:00
Jake Potrebic
edd270486c Updated Upstream (Bukkit/CraftBukkit) (#9013)
* 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:
150a2861 PR-827: Add BlockData#getPlacementMaterial
58c9c8ce SPIGOT-7301: Prevent creating non-openable inventories
3741079b PR-824: Expand upon PotionEffect API to better accommodate infinite durations

CraftBukkit Changes:
e5a7921f0 PR-1149: Add BlockData#getPlacementMaterial
58504fa61 SPIGOT-7302: Fix more issues with EntityDamageByEntity - Fix Projectile damage by dispenser - Fix cases where only exists a direct entity damager
48394703d Increase outdated build delay

* Improve docs for BlockData#getPlacementMaterial
2023-03-20 01:47:10 -07:00
Jake Potrebic
4015d08acf Use class loggers without the fqn for non-debug logging (#9012) 2023-03-20 01:23:52 -07:00
JOO200
c54215c1b2 adventure: make calls with generic component lists more usable (#9008)
This should allow the usage of ItemStack#lore and other methods with a List<TextComponent>
2023-03-20 09:18:06 +01:00
Jake Potrebic
72dde6b5dd Fire reload event after everything has been reloaded (#9003)
This event is going to be more important very shortly (hopefully)
2023-03-19 12:28:28 -07:00
Jake Potrebic
3db404320a Fix entity damage event triggers (#8995) 2023-03-19 11:58:34 -07:00
Jason Penilla
d8a4261a4d Use random UUIDs instead of incrementing long for click callback ids (#9007) 2023-03-19 11:25:45 -07:00
Emily
5f6566b549 Re-enable multi-release plugin JARs (#9001) 2023-03-19 11:50:13 -03:00
Jake Potrebic
40b2d389d2 Add back optimize hoppers (#8999) 2023-03-18 12:03:42 -07:00
Nassim Jahnke
b56746c91a Fix setItem with air on chiseled bookshelves 2023-03-18 18:52:24 +01:00
Jake Potrebic
36af2d581a Fix SpawnEggMeta#get/setSpawnedType (#8907) 2023-03-18 10:32:03 -07:00
Jake Potrebic
0d1524d04f Updated Upstream (Bukkit/CraftBukkit) (#8991)
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:
2b4582fb SPIGOT-5916: getLastColors does not work with the rgb colors

CraftBukkit Changes:
f7707086d SPIGOT-7299: Fix indirect/anvil damage events and minor improvements
2023-03-18 10:05:04 -07:00
Owen1212055
08482e72bb Add Shearable API (#6796) 2023-03-17 17:11:08 -04:00
Jake Potrebic
f104213baf Fix certain inventories returning null Locations (#8985) 2023-03-16 11:47:05 -07:00
XanderDeKeijzer
df12d57bed Fix changeGameModeForPlayer to use gameModeForPlayer MC-259571 (#8987) 2023-03-16 17:06:40 +01:00
Nassim Jahnke
8b225c2699 Fix text display error on spawn
Fixes #8984
2023-03-16 16:28:48 +01:00
Nassim Jahnke
b3b488f568 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:
2651717c SPIGOT-7292: Support for alpha channel in Color and a few improvements

CraftBukkit Changes:
dbc32ffa0 SPIGOT-7292: Support alpha channel in Display entities
cef8bd993 SPIGOT-7294: Call EntityDamageEvent for Interaction entity
2023-03-16 10:07:12 +01:00
Jake Potrebic
a05865b56b Fix structure loading 2023-03-15 18:57:29 -07:00
Jake Potrebic
06335dfd4f 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:
3a54fb16 SPIGOT-7296: Add ItemFlag#HIDE_ARMOR_TRIM

CraftBukkit Changes:
55056ad80 SPIGOT-7295: Fix Sniffer data defined in incorrect position
2023-03-15 12:59:34 -07:00
Nassim Jahnke
8ff5a4a679 Update DataConverter 2023-03-15 20:17:42 +01:00
Owen1212055
d166b09352 Camel EntityToggleSitEvent (#8970) 2023-03-15 10:37:41 -04:00
Nassim Jahnke
8640f5feff Update adventure to 4.13.0 2023-03-15 13:19:54 +01:00
Jake Potrebic
239e16a2be 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:
fdef9473 Correct Material#isFuel for new experimental materials
42811598 SPIGOT-7293: Add Biome#CHERRY_GROVE

CraftBukkit Changes:
968d28df0 Fix availability of experimental datapack features in unit tests
2023-03-15 04:54:45 -07:00
Nassim Jahnke
e71930939e Updated Upstream (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

CraftBukkit Changes:
e1fc95c50 Fix crash with 1.20 smithing table
04dfb921d Fix crash with juke boxes
1264a6fb5 Fix crash with composters
2023-03-15 10:33:43 +01:00
Jake Potrebic
d583bb93e8 HIDE_UPGRADES and fixes for sniffer and new smithing table 2023-03-14 20:04:41 -07:00
Jake Potrebic
69de1e5d07 Fix jukeboxes 2023-03-14 19:17:28 -07:00
Jake Potrebic
286598313a Fix composter throwing UOE with new game event 2023-03-14 18:27:20 -07:00
Jake Potrebic
69697c6a22 Add back item entity global player list check 2023-03-14 17:36:12 -07:00
Jake Potrebic
5f756cc090 make tests work again 2023-03-14 17:21:35 -07:00
Jake Potrebic
7c04e01288 Add missing annotation 2023-03-14 17:08:41 -07:00
Jake Potrebic
95fa3274e9 readd exploded block state patch 2023-03-14 17:06:28 -07:00
Jake Potrebic
5900d6bba8 Add component methods to TextDisplay entity 2023-03-14 16:52:28 -07:00
Jake Potrebic
f496b60138 Fix icon in timings 2023-03-14 16:44:53 -07:00
Jake Potrebic
62d13109b7 make tests pass 2023-03-14 16:29:38 -07:00
Jake Potrebic
8b4edb6f19 fix more compile errors 2023-03-14 16:10:18 -07:00
Jake Potrebic
e277e6a990 fix some compile errors 2023-03-14 15:13:41 -07:00
Nassim Jahnke
d5f9f3f9fc One fix 2023-03-14 22:35:03 +01:00
Nassim Jahnke
c07518e0c6 Applied all patches 2023-03-14 22:29:14 +01:00
Nassim Jahnke
b5f8080674 More more more more more more more more patches 2023-03-14 22:10:53 +01:00
Nassim Jahnke
5c5a21fb9f More more more more more more more patches 2023-03-14 21:55:49 +01:00
Jake Potrebic
4ccad29fa5 Use adventure serializer when serializing an adventure component in a codec (#8967) 2023-03-14 13:27:18 -07:00
Nassim Jahnke
0fa58eada1 More more more more more more patches 2023-03-14 21:25:13 +01:00
Nassim Jahnke
b7ee1ae38a More more more more more patches 2023-03-14 20:54:57 +01:00
Jake Potrebic
d2bcd5358b Add more experimental annotations 2023-03-14 12:47:27 -07:00
Nassim Jahnke
8ab183d79e More more more more patches 2023-03-14 20:24:52 +01:00
Nassim Jahnke
8f5ec00c38 More more more patches 2023-03-14 19:59:51 +01:00
Jake Potrebic
c02edac0c7 update adventure docs link in bungeecord-chat javadocs 2023-03-14 11:59:28 -07:00
Nassim Jahnke
92dd8645a8 More more patches 2023-03-14 19:36:39 +01:00
Jake Potrebic
f29f49ac23 mark experimental api correctly and add missing isFuel 2023-03-14 11:08:29 -07:00
Nassim Jahnke
15ade6f446 More patches 2023-03-14 19:05:23 +01:00
Nassim Jahnke
7936e7a615 API 'done' 2023-03-14 18:21:11 +01:00
Nassim Jahnke
08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
Jake Potrebic
627c3d4475 Properly handle load before plugins in legacy loading (#8962) 2023-03-12 11:00:02 -07:00
Moulberry
afa04e6cd7 Fix getTargetEntity not targeting creative players (#8960) 2023-03-12 20:50:02 +08:00
Jake Potrebic
d24a71e85d Updated Upstream (Bukkit/CraftBukkit/Spigot) (#8874)
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:
6b3c598b PR-814: Add a method to send multiple equipment changes
181a984b Update Maven shade version to align with CraftBukkit
a5a36e32 Revert "Update Maven shade version to align with CraftBukkit"
7a8f4a42 Update Maven shade version to align with CraftBukkit
58327201 Add support for Java 20

CraftBukkit Changes:
b56426c7a PR-1142: Calculate explosion damage separately for each affected EntityComplexPart
fbe3410af PR-1140: Add a method to send multiple equipment changes
8434e3633 Add support for Java 20
c998a1d23 Increase outdated build delay
4a929b5d6 SPIGOT-7267: Fix EntityType#getTranslationKey() and add unit test
086d8dc8a SPIGOT-7268: CraftMetaPotion reads ShowParticles and ShowIcon properties incorrectly
8ba5e399e SPIGOT-7262: Improve visibility API

Spigot Changes:
a2190e30 Rebuild patches
2023-03-10 12:18:50 -08:00
Owen1212055
8d211062df Correctly Remove Classloaders, Avoid Loading Providers in /paper dumpplugins, Fix library lookup (#8938) 2023-03-06 19:20:11 -05:00
Owen1212055
03c2f3b9db Fix Player#setPlayerProfile (#8939) 2023-03-06 18:15:25 -05:00
Jake Potrebic
449be4e304 Correctly handle ArmorStand invisibility (#8944) 2023-03-06 10:17:03 -08:00
Jake Potrebic
7fcf565d9c Use configured log prefix for spigot library loading (#7934) 2023-03-05 11:02:52 -08:00
Noah van der Aa
ac1255aa58 Add CompostItemEvent and EntityCompostItemEvent (#6356) 2023-03-05 18:59:48 +01:00
Noah van der Aa
9aadb9a0c9 Fix cancelling EntityDeathEvent for Armor Stands killed by players (#6478) 2023-03-05 18:48:34 +01:00
Jake Potrebic
1c67f8204d Fix HumanEntity#drop not updating the client inventory (#6761) 2023-03-04 14:57:02 -08:00
Lulu13022002
db48389906 Include previous spawn angle in SpawnChangeEvent (#8606) 2023-03-04 23:42:10 +01:00
Lulu13022002
631251a913 Take in account waterlogged block for the event (#8623)
There's some inconsistencies between the EntityChangeBlockEvent and the BlockDestroyEvent. The destroy event has always the right final type but the change block event has always air even for waterlogged blocks. This fix this behavior only for possible case to avoid a bigger patch.
2023-03-04 23:35:26 +01:00
Lulu13022002
562a36f98b Add EntityFertilizeEggEvent (#8041) 2023-03-04 23:23:32 +01:00
Owen1212055
2dd20a5904 Add TeleportFlags (#8855)
Abstracts relative teleport flags and instead makes a generic TeleportFlag option. This has the benefit of being able to easily add new flags in the future.
This adds a new flag, which allows you to keep inventories open when teleporting players (vanilla behavior).

These are breaking changes to the teleport api, however, it's still marked as experimental so I find this a fair change.
2023-03-04 17:07:23 -05:00
Moros
d922f2e369 Fix rendering for translatable death messages (#8534) 2023-03-04 23:56:38 +02:00
Glare
7302df8cf7 /paper entity list QOL improvements (#8876)
This PR implements a QOL feature to /paper entity list <entity> where it will allow a user to teleport to chunk.
2023-03-04 15:35:07 -06:00
Jake Potrebic
f8ba85ffbf Replace ConfiguredStructure api with Structure (#8642) 2023-02-28 08:36:01 -08:00
Viktor Hrekh
81f79b407d Log message if plugin bootstrap provided external plugin instead of throwing an exception (#8914) 2023-02-28 14:17:49 +02:00
Warrior
7fceedc84f Fix MC-157464 Prevent sleeping villagers moving towards food (#8923) 2023-02-28 13:14:17 +01:00
Lulu13022002
0d9fa0f886 Update the flag when a captured block state is outdated (#8860) 2023-02-28 13:13:59 +01:00
Emily
2ad6c390e0 Close plugin jar file on classloader close and after retrieving name for updating (#8902) 2023-02-28 08:34:33 -03:00
Nassim Jahnke
5a125e0fc3 Fix getBlockStateIfLoaded world bounds check
Closes #8922
2023-02-28 12:27:38 +01:00
Jake Potrebic
6910253909 fix runServer tasks 2023-02-27 16:30:33 -08:00
Nassim Jahnke
eab0a0a28e Don't log or die on cyclic dependencies of Spigot plugins 2023-02-27 12:09:10 +01:00
Jason Penilla
5542f6997e Make PluginProviderContext#getLogger return ComponentLogger, remove PluginProviderContext#getSLF4JLogger (#8921) 2023-02-26 12:13:15 -07:00
Jake Potrebic
017665b793 Fix forced respawn with respawn anchor (#8845) 2023-02-26 09:38:42 -08:00
SoSeDiK
903747cc3a Additional ExplosiveMinecart API (#8896) 2023-02-26 18:01:43 +02:00
Noah van der Aa
6a50027d5d chore: update adventure documentation url in javadocs (#8912) 2023-02-26 17:00:55 +01:00
Jake Potrebic
f042d06125 Fix NamespacedKey#equals not accepting other Key types (#8919) 2023-02-26 06:59:52 -08:00
Owen1212055
47f0fe739b Properly re-add providers when reloading (#8881) 2023-02-23 12:58:50 -05:00
Nassim Jahnke
58da8ca385 Update adventure doc links 2023-02-23 17:55:36 +01:00
Nassim Jahnke
4f14496fbd Clean up hopper optimization patch 2023-02-23 17:37:56 +01:00
Lulu13022002
a7a3da8802 Avoid duplicate game event on initial fill (#8887) 2023-02-23 10:37:28 +01:00
Jake Potrebic
5f73b95e43 Fix chat messages logged in console (#8872) 2023-02-23 01:37:18 -08:00
Jake Potrebic
a59536946b Properly log any Throwable on plugin class creation (#8897) 2023-02-23 01:36:45 -08:00
Jakubk15
4ad4252079 Do not send plugin headers when it is not required (#8889) 2023-02-23 00:59:42 +01:00
Bjarne Koll
751beefa8e Close library classloader and improve PluginDescriptionFile (#8901) 2023-02-22 21:54:27 +01:00
Jake Potrebic
eb56bf3058 Fix update folder logging error when no folder exists (#8891) 2023-02-22 12:17:58 -08:00
Owen1212055
75e61d5bf2 Validate providers when populating load order tree (#8890) 2023-02-22 10:59:12 -05:00
Jake Potrebic
ee1dffb8d5 Fix JavaPlugin static getPlugin methods (#8888) 2023-02-21 19:27:49 -08:00
Jake Potrebic
37d171544a Further clarify functionality of damageItemStack methods (#8878) 2023-02-21 09:35:25 -08:00
Space Walker
7d56ee5d45 update alternate current to v1.5.0 (#8882) 2023-02-21 17:58:18 +01:00
Bjarne Koll
78f94ecb2d Configure mokitor Server mock as stubOnly (#8861)
A recent patch moved the internal unit tests to mokito, allowing
deep mocking to easily setup a mocked server instance.
While this change is useful, the server's Server#getItemFactory methods
is one of the hottest paths during unit testing, being called numerous
times by material tests.
As mokito mocks keep track of each invocation to allow for verifications
of invocations down the line, the server mock allocates a huge amount of
memory to keep track of all invocations, ultimately leading to an OOM
exception.

The previous solution solved this by increasing the tests memory to 2 GB,
however as of right now simply configuring the server mock as "stubOnly",
properly prevents the overflow of invocation records as none of the unit
test code relies on invocation verification.
2023-02-21 17:18:49 +01:00
Owen1212055
08d77ce67a Redefine Cyclic Dependencies (#8873) 2023-02-20 20:09:38 -05:00
Owen1212055
1c5cb2f43a Small paper plugin fixes (#8866)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2023-02-20 13:02:53 -05:00
Nassim Jahnke
0ce11aca74 Update circular dependencies warning, properly crash
Also fixes logging errors
2023-02-20 15:20:49 +01:00
Owen1212055
b0ce047eae Fix plugin updater logic, allow null update directory (#8864) 2023-02-19 13:17:51 -05:00
Owen1212055
6915dee3e3 Paper Plugins (#8108) 2023-02-19 09:57:10 -05:00
Jake Potrebic
5d777995f4 Fix calling UnknownCommandEvent (#8232) 2023-02-16 18:07:30 -08:00
Shane Freeder
19889e8a77 Temp fix for EntityType.translationKey
Upstream improperly used the enum name for looking up the vanilla entity
type to get the translation key; temp patch this until upstream fixes this,
also add some quick validation
2023-02-16 03:20:43 +00:00
Jake Potrebic
b15172bc8e Make sure Registry is loaded after Bukkit.setServer() (#8853) 2023-02-15 15:00:22 -08:00
Jake Potrebic
f9e1ad2c2d Updated Upstream (Bukkit/CraftBukkit) (#8832)
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:
37262de8 PR-812: Add Registry#match(String)
d6b40162 SPIGOT-4569: Add more BlockData API
f9691891 PR-809: Throw a more clear error for BlockIterators with zero direction, add Vector#isZero()
91e79e19 PR-804: Added methods to get translation keys for materials, itemstacks and more
426b00d3 PR-795: Add new BiomeParameterPoint passed to BiomeProvider#getBiome
0e91ea52 SPIGOT-7224: Add events for brewing stands and campfires starting their actions

CraftBukkit Changes:
a50301aa5 Fix issues with fluid tag conversion and fluid #isTagged
6aeb5e4c3 SPIGOT-4569: Implement more BlockData API
7dbf862c2 PR-1131: Added methods to get translation keys for materials, itemstacks and more
7167588b1 PR-1117: Add new BiomeParameterPoint passed to BiomeProvider#getBiome
7c44152eb SPIGOT-7224: Add events for brewing stands and campfires starting their actions
2023-02-15 14:10:14 -08:00
Jake Potrebic
bd166747a6 convert API/server tests to mockito (#8848)
* convert API tests to mockito

* convert server tests to mockito

* add co-author
2023-02-15 13:27:40 -08:00
brickmonster
afeeaca6dd Remove patch that was made obsolete by vanilla (#8847) 2023-02-13 17:52:27 +00:00
TM (Holly)
205d1402f8 Call PlayerReadyArrowEvent for when items in the offhand are used (#8842) 2023-02-13 09:36:25 +00:00
Jake Potrebic
ffc1cf92a1 Add missing isFuel Material entries (#8843) 2023-02-12 13:02:01 -08:00
Lulu13022002
f3de04a9fb Fix desync of honeycomb when the event is canceled (#8713) 2023-02-11 18:14:03 +01:00
Andreas Prues
723559e9f0 More Win Screen API (#8805)
Adds methods to get and set whether a player has seen the win screen before.
2023-02-11 16:55:45 +01:00
SamB440
e343c4eb44 Add projectile hit simulation API (#8816)
This adds API to force a projectile to hit a provided entity. Example usage could be if you have a player disguised as another entity, you could simulate an arrow colliding with the (fake) entity hitbox.
2023-02-11 15:41:06 +00:00
Matt Artist
f40928931b Modify offline mode warning to include Velocity line (#8812)
This adds a check to the offline-mode warning to see if Velocity is enabled. If it is enabled then it warns the user to make sure to secure their server and links to the Velocity documentation on that.
2023-02-10 18:10:11 -05:00
Drex
905b16a361 Add AntiXray layered obfuscation mode (#8799) 2023-02-09 18:38:00 +01:00
Piotr Pasztor
ab76bb014b Add Entity Body Yaw API (#8822) 2023-02-09 18:31:51 +01:00
Emily
b2b666ced2 Fix Tick::addTo/::between causing SOE (#8824) 2023-02-09 14:30:30 -03:00
Martijn
90cdec2283 Fix chunk sending when the computed time overflows (#8833) 2023-02-09 18:27:24 +01:00
Nassim Jahnke
62048076ef Send disguised chat for vanished players 2023-02-09 18:15:21 +01:00
Jake Potrebic
5fba40cc67 Updated Upstream (Bukkit/CraftBukkit) (#8823) 2023-02-07 07:55:53 -08:00
Jake Potrebic
3212d9fcf5 Deprecate duplicate API for arrow stuck count (#8829) 2023-02-07 07:43:20 -08:00
Jake Potrebic
72de51c57a Fix force-opening enchantment tables (#8820) 2023-01-27 13:01:36 -08:00
Jake Potrebic
b727bda1b0 Updated Upstream (CraftBukkit/Spigot) (#8815)
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

CraftBukkit Changes:
ab8ace685 SPIGOT-7236: Bone meal doesn't increase use statistic
7dcb59b8e Avoid switch on material in previous commit

Spigot Changes:
19641c75 SPIGOT-7235: World.Spigot#strikeLightningEffect doesn't do anything
2023-01-27 12:52:04 -08:00
Josh Roy
166dc90e1c Remove CraftItemStack#setAmount null assignment (#8807)
This creates a problem with Paper's item serialization
api where deserialized items, which are internally
created as a CraftItemStack, will be completely lost if
#setAmount(0) is invoked (since the underlying handle
is set to null), while a regular Bukkit ItemStack
simply sets the amount field to zero, retaining the
item's data.

Vanilla treats items with zero amounts the same as items
with less than zero amounts, so this code doesn't create
a problem with operations on the vanilla ItemStack.
2023-01-24 09:30:51 -05:00
Aya
cbf3b9b7af [ci skip] Fix PiglinBarterEvent JavaDoc (#8795) 2023-01-22 20:33:21 +02:00
Andreas Prues
17333bd2e5 Win Screen API (#8802) 2023-01-22 14:21:45 +01:00
Aya
80dbbcd4bb Add Player#sendEquipmentChange(Map) API (#8800) 2023-01-22 15:00:37 +02:00
Bjarne Koll
ef23d583c0 Correctly shrink items during EntityResurrectEvent (#8780)
The EntityResurrectEvent logic is supposed to locate a totem of undying
in any of the interaction slots of the player inventory and then, if the
called EntityResurrectEvent is not cancelled, shrink that item by 1,
usually reducing it to zero.

For this, the logic iterates over the items in the interaction slots and
breaks out the loop if a totem of undying was found.
However, even if no totem of undying was found, the iteration item stack
variable remains as a refernce to the last interaction slot probed.

Plugins uncancelling a EntityResurrectEvent, which is published
pre-cancelled to listeners if no totem of undying could be found,
would hence cause the server logic to shrink completely unrelated items
found in, at the writing of this patch, the players off hand slot.

This patch corrects this behaviour by only shrinking the item if a totem
of undying was found and the event was called uncancelled.
2023-01-19 23:09:08 +01:00
Nassim Jahnke
6627ac4b94 Revert executor in authentication thread pool back to original patch 2023-01-18 17:20:24 +01:00
alex6777
1b552c2a22 Don't clone location in PreCreatureSpawnEvent (#8790) 2023-01-16 10:03:58 -05:00
Nassim Jahnke
4537ed779a Update netty to 4.1.87 2023-01-14 19:53:32 +01:00
froobynooby
9bc8ff81e2 Fix entity types not appearing in timings (#8786) 2023-01-14 10:33:13 +09:30
Jake Potrebic
bf239d382f Fix some explosion damage not scaling with difficulty (#8767)
Fixes https://github.com/PaperMC/Paper/issues/8735
2023-01-11 17:10:45 -08:00
Corey Shupe
fd465d949c Fix player chat messages from vanished players resulting in kicks (#8777)
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
2023-01-10 08:01:42 -05:00
Jake Potrebic
97690710b3 Fix treasure map config for loot tables (#8739) 2023-01-10 04:09:19 -08:00
byquanton
e52ed2c588 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:
79e39671 SPIGOT-7034: Add methods for set/get instrument in Goat Horn

CraftBukkit Changes:
4768df736 SPIGOT-7034: Add methods for set/get instrument in Goat Horn
941d7e954 SPIGOT-7225: FireworkMeta#getPower() can throw a NullPointerException for items with no power set
2023-01-09 17:49:06 +01:00
Jake Potrebic
3ee1c5bf3f Use single player info update packet on join (#8773) 2023-01-08 18:46:54 -08:00
Hannes Greule
78bd0e8518 Fix items never falling after being on ground (#8768) 2023-01-07 13:05:13 +01:00
Nassim Jahnke
27a64790ed [ci skip] Fix instrument reference in item specific hide flag docs 2023-01-05 20:28:43 +01:00
Bjarne Koll
43f4155da3 Persist paper lootable on entities (#8762) 2023-01-05 11:59:10 +01:00
Nassim Jahnke
5f27ebfa6f Replace ItemFlag.HIDE_POTION_EFFECTS (#8765) 2023-01-05 11:54:21 +01:00
Hannes Greule
850adc4885 Fix operator precedence bug (#8756) 2023-01-03 14:42:58 +01:00
Jake Potrebic
9473cd8981 Updated Upstream (Bukkit/CraftBukkit) (#8740)
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:
d352d965 SPIGOT-7221: Add Enemy (Entity) interface

CraftBukkit Changes:
397c5557c SPIGOT-7221: Add Enemy (Entity) interface
a0d3dfaf2 PR-1129: Fix state corruption while handling explosion damage on EntityComplexPart
d67777f8b SPIGOT-7218: Player's outer layer of skin disappears after respawn
2023-01-01 12:17:40 -08:00
Lulu13022002
f7f8d3c75b [ci skip] Fix hoglin conversionTime javadoc (#8734) 2022-12-30 21:08:02 +01:00
Owen1212055
cb9bc57e60 Return 0 if null for FireworkMeta (#8738) 2022-12-30 12:33:41 -05:00
Jake Potrebic
48768d68d6 Rework filtering spawn egg and tile entity nbt config (#6613) 2022-12-27 18:59:15 -08:00
SoSeDiK
49f3ef443a Expose pre-collision moving velocity to VehicleBlockCollisionEvent (#8457) 2022-12-28 00:56:19 +02:00
TreyRuffy
a0d9d433a3 Player Flying Fall Damage API (#5357) 2022-12-27 13:41:59 -07:00
Jake Potrebic
7c42959fb0 Updated Upstream (Bukkit/CraftBukkit) (#8714)
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:
aef9b6d2 PR-800: Add support for NoteBlock sounds in Skulls

CraftBukkit Changes:
ae8f5fc02 PR-1125: Add support for NoteBlock sounds in Skulls
0a1c89e4b SPIGOT-7212: Allow negative firework power
909a246af SPIGOT-7211: generateTree() with Consumer or Predicate is broken
c810c3ed8 Increase outdated build delay
2022-12-26 09:53:35 -08:00
Jake Potrebic
d4d31bb847 Fix (again) Player#getPlayerProfile no such method error (#8722) 2022-12-26 04:34:23 -08:00
Owen1212055
e794bcecbd Respect SpigotConfig logCommands & fix stopDancing() NPE (#8715) 2022-12-25 23:22:08 -05:00
Jake Potrebic
99fb11f7ea Use team display name for quit message (#7127) 2022-12-25 08:57:54 -08:00
Owen1212055
5297d99a4e Tadpole lock API (#8297) 2022-12-23 15:50:32 -05:00
aerulion
6b4dfb9627 Add EntityPushedByEntityEvent (#7704) 2022-12-23 20:59:11 +01:00
TehBrian
0ece030a7d fix ArmorStandMeta not applying false flags (#8632) 2022-12-23 12:30:42 -05:00
Noah van der Aa
b8a1f20c8d Add config option for spider worldborder climbing (#6448)
Co-authored-by: BillyGalbreath <blake.galbreath@gmail.com>
2022-12-23 17:51:24 +01:00
Noah van der Aa
c2bee2c705 Expose signed message in chat events (#8694) 2022-12-23 16:54:04 +01:00
Jake Potrebic
424df4f743 Deprecate ProjectileCollideEvent (#8678)
replaced by ProjectileHitEvent
propagated the cancellation of the legacy event
to the modern one
2022-12-22 21:20:44 -08:00
Lulu13022002
3ee986cc2d Avoid to spam the transform event for hoglin->zoglin conversion (#8712) 2022-12-22 23:39:07 +01:00
Jake Potrebic
ae31085e6d Fix OfflinePlayer getPlayerProfile return type (#8710) 2022-12-21 20:30:21 -08:00
Nassim Jahnke
583c8afcd8 Fix buffer-joins-to-world patch 2022-12-21 22:55:42 +01:00
Jake Potrebic
b28618e07c Fix OfflinePlayer#getPlayerProfile returning deprecated type (#8543) 2022-12-20 10:56:33 -08:00
Jake Potrebic
d20d36a172 Add exploded block state to BlockExplodeEvent (#6818) 2022-12-19 21:09:51 -08:00
Nassim Jahnke
37a96734c7 Remove somewhat broken patch
With the new chunk system it doesn't hurt too much to (temporarily) remove this until implemented in a safer manner
2022-12-19 11:46:55 +01:00
Lulu13022002
03dad8f20a Add missing EntityChangeBlockEvent (#8696)
* Add missing EntityChangeBlockEvent

* Fix duplicate empty bottle when canceled for creative player

* Use native update impl instead of craftbukkit -> nms
2022-12-17 19:20:14 +01:00
Jake Potrebic
3394f6b808 Improve PortalEvents (#8679) 2022-12-17 09:36:02 -08:00
Jason Penilla
efaf778680 Fix reobf issue in previous commit 2022-12-17 00:46:46 -07:00
Jason Penilla
1de7f28233 ChatProcessor fixes (#8690)
Fixes handling for `ForwardingAudience.Single` and passes the signed message to non-native `Audience` types
2022-12-16 23:05:48 -07:00
Jake Potrebic
968a3ee539 Don't call lock check event if the block entity doesn't exist (#8687) 2022-12-16 13:31:51 -08:00
Jake Potrebic
deb2116724 Fix metrics reporting unknown paper version (#8683)
Co-authored-by: BillyGalbreath <Blake.Galbreath@GMail.com>
2022-12-16 09:37:06 -08:00
Jake Potrebic
deea75d745 Fix Player#chat for 1.19.3 (#8684) 2022-12-16 09:15:21 -08:00
Jake Potrebic
4567f41500 Updated Upstream (CraftBukkit) (#8680)
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

CraftBukkit Changes:
2ed3e3e6e SPIGOT-7210: Fix structures in custom worlds
585ab5ba1 SPIGOT-7207: WorldCreator creates world as super flat even when normal is specified
2022-12-15 17:16:34 -08:00
Jakub Žáček
fab251199d Add Sneaking API for Entities (#8485) 2022-12-15 20:43:14 +01:00
Jake Potrebic
b5ab281c29 Deprecate TargetBlock/EntityInfo and assocated methods (#7381) 2022-12-15 09:10:03 -08:00
Jake Potrebic
9eb6b1db93 Add BlockLockCheckEvent (#7840) 2022-12-15 08:49:49 -08:00
Nassim Jahnke
dd2051ae52 Remove guardian beam render issue workaround
Messing with game time sent to the client isn't worth the trouble whenever it may be used by the client now and in the future for such a small issue. Mojang, plz fix
2022-12-15 14:19:09 +01:00
Jake Potrebic
e28eb9ab05 Fix explosion yield with new gamerules (#8674) 2022-12-14 20:01:31 -08:00
Jake Potrebic
74e9dbfa19 Improve some logging and errors (#8673) 2022-12-14 19:54:43 -08:00
Jake Potrebic
96d7b7b6e4 Add more breakNaturally functionality (#7379) 2022-12-14 19:37:16 -08:00
Jake Potrebic
a0b62c40db Remove deprecated event warning for inventory result event (#8672) 2022-12-14 15:09:11 -08:00
Jake Potrebic
437103e45e Fix inconsistencies in dispense events regarding stack size (#8653)
* Fix inconsistencies in dispense events regarding stack size

The javadocs for BlockDispenseEvent suggest the ItemStack is a single
item which is being dispensed. Before this fix, sometimes it was the whole
stack before a single item had been taken. This fixes that so the stack size
is always 1.

* Ensure stack size is correct in minecart and armor dispense behaviors
2022-12-14 13:05:11 -08:00
Jake Potrebic
a4112a5c50 Updated Upstream (Bukkit/CraftBukkit) (#8663)
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:
f50ad1f8 PR-798: Add PrepareGrindstoneEvent and refactor related events to use PrepareInventoryResultEvent
0cac7963 SPIGOT-7204: Add TeleportCause#DISMOUNT
b4dd47b0 SPIGOT-7202: Deprecate removed door effects

CraftBukkit Changes:
ab1586c2f PR-1123: Add PrepareGrindstoneEvent
b402824ea SPIGOT-7204: Add TeleportCause#DISMOUNT
06a6a1012 PR-1121: Add unit test for spawn egg meta
c18668be3 SPIGOT-7192: Call PlayerInteractEvent with Action.LEFT_CLICK_AIR if the entity interacted is hidden to the player
47124f639 Increase outdated build delay
645993470 SPIGOT-7201: Spawner ItemMeta not working as expected
2022-12-13 21:03:57 -08:00
Jake Potrebic
e849888abb Fix fire charge not being consumed igniting a creeper (#8652) 2022-12-13 09:23:05 -08:00
SoSeDiK
45821f2511 Fix locateNearestBiome nullability check (#8662) 2022-12-13 17:01:54 +02:00
EpicPlayerA10
851a363fad Fix death message containing empty string (#8656)
Resolves: #8654
2022-12-13 13:24:59 +01:00
Jake Potrebic
2c4d034313 Fix items equipped on AbstractHorse losing NBT (#8647)
* Fix items equipped on AbstractHorse losing NBT

* squash later mc fix into vanilla patch
2022-12-11 15:22:56 -08:00
Jake Potrebic
3a0963092a Add the non-flammable wood item tag (#8648) 2022-12-11 13:01:18 -08:00
Noah van der Aa
2b86179e7e [ci skip] Correct chat preview removal version in javadoc (#8646) 2022-12-11 19:34:31 +01:00
Jake Potrebic
e74fb06010 Deprecate isPreview method in decorate events (#8645) 2022-12-11 09:55:39 -08:00
Jason Penilla
cf2bb8381b [ci skip] Remove non-functioning patch 2022-12-10 21:40:18 -07:00
Jake Potrebic
63e191936d Add Position (#7639)
* Add Position

* move Position patch to start
2022-12-10 16:50:32 -08:00
Jake Potrebic
09c45d4cab Fix empty effect clouds from lingering potions (#8641) 2022-12-10 14:52:37 -08:00
Lulu13022002
8b951a41ae Don't show particles when splash events are canceled (#8637) 2022-12-10 22:27:36 +01:00
Jake Potrebic
f976ec6b19 Fix MapLike Codec missing key 'selector' (#8634)
* Fix MapLike Codec missing key 'selector'

* Make sure a new instance is created each time
2022-12-10 09:04:27 -08:00
Nassim Jahnke
a29f26bb86 [ci skip] Fix leaf'd patch names 2022-12-10 17:42:50 +01:00
Nassim Jahnke
169ac46b2b Readd BlockBehavior inlining patch 2022-12-10 17:24:01 +01:00
Lulu13022002
2f97008db9 Fix chunksnapshot biome getter (#8639) 2022-12-10 14:11:39 +01:00
Lulu13022002
ef47433fdb Add eating regain reason for Camels (#8638) 2022-12-10 14:07:35 +01:00
Owen1212055
e383b8e15d Rabbit API (#8627) 2022-12-09 19:56:13 -05:00
Jake Potrebic
ad6b5121b7 Properly identify golem spawn reason (#8635) 2022-12-09 16:37:03 -08:00
Jake Potrebic
7332b8c2c4 Readd improve/fix EntityTargetLivingEntityEvent (#8630) 2022-12-09 03:30:55 -08:00
Jake Potrebic
7c8a0e8e83 Add new 1.19.3 fires of EntityInsideBlockEvent (#8629) 2022-12-09 02:46:47 -08:00
Jake Potrebic
ff9d51df21 last instrument fix, I promise 2022-12-09 02:03:06 -08:00
Jake Potrebic
d1e41fdc47 couple more instrument/note fixes 2022-12-09 01:49:15 -08:00
Jake Potrebic
a4bd0cf67b fix Instruments 2022-12-09 01:34:39 -08:00
Jake Potrebic
2c494f0af9 Mark experimental api as such (#8628) 2022-12-09 01:13:22 -08:00
Owen1212055
fcb3cfa2f5 Update adventure (#8625) 2022-12-09 04:11:28 -05:00
Jake Potrebic
5e31c8a26b fix method rename issue in Camel 2022-12-08 18:17:06 -08:00
Jason Penilla
449f63be8c Account for splash water bottles now extinguishing entities (#8622)
* Account for splash water bottles now extinguishing entities

* improvements and javadocs

* reorder patches

* rename event to WaterBottleSplashEvent

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2022-12-08 17:33:22 -07:00
Owen1212055
d7dbb07235 Deprecate PluginLoader and impls (#8619) 2022-12-08 16:27:37 -05:00
Jake Potrebic
6b6282af03 fix a few structure seed configs 2022-12-08 12:15:18 -08:00
Jake Potrebic
759e2acf0e readd missing structure set seeds patch 2022-12-08 11:06:54 -08:00
Jake Potrebic
40bdabb571 properly handle xray bypass perm 2022-12-08 10:35:33 -08:00
Jake Potrebic
6f65677ca2 check now succeeds 2022-12-08 10:23:12 -08:00
Jake Potrebic
b344c04a4a fix some tests and DoNotUse violations 2022-12-08 09:06:14 -08:00
Nassim Jahnke
c29c901ae8 Readd fixes for SpawnReason API patch 2022-12-08 17:51:06 +01:00
Jake Potrebic
58a098403c fix ChatProcessor 2022-12-08 08:32:29 -08:00
Nassim Jahnke
461e31b4f8 Update Velocity modern forwarding reading 2022-12-08 12:16:44 +01:00
Nassim Jahnke
a95d2378e7 Fix bad AT 2022-12-08 12:00:10 +01:00
Nassim Jahnke
27fddd665d Updated Upstream (Bukkit/CraftBukkit/Spigot)
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:
dea9ce0a SPIGOT-7198: Add Sittable interface to Camel

CraftBukkit Changes:
eecb4c0dc SPIGOT-7196: Exception loading alternate worlds
0ff61e8fa SPIGOT-7198: Add Sittable interface to Camel
676441aac PR-1121: Handle additional missing SpawnEggs in MetaSpawnEgg
e85280e02 Handle missing SpawnEggs in MetaSpawnEgg

Spigot Changes:
d90018e0 SPIGOT-7199: NPE loading or creating world with custom chunk generator
2022-12-08 11:53:14 +01:00
Jake Potrebic
06018dbedf fix some startup issues 2022-12-08 00:52:08 -08:00
Jake Potrebic
181b2c7e46 fix more compile issues 2022-12-07 22:11:20 -08:00
Jason Penilla
a0a9b9291a more compile fixes 2022-12-07 21:24:59 -07:00
Jason Penilla
6e1deb99aa compile fixes 2022-12-07 20:24:00 -07:00
Noah van der Aa
d654558a4e More 1.19.3 registry fun (#8618) 2022-12-08 00:49:41 +01:00
Owen1212055
3a5be0bbe7 Properly resend entities (#8617) 2022-12-07 18:11:44 -05:00
Nassim Jahnke
be2259ea83 Fix MCVersions 2022-12-07 23:29:30 +01:00
Noah van der Aa
8208e3d1c4 Add missing spawn eggs: Electric Boogaloo (#8616) 2022-12-07 23:10:51 +01:00
Nassim Jahnke
3d2c9cd064 Almost all patches 2022-12-07 23:05:32 +01:00
Nassim Jahnke
580e157417 More patchidy patched patch patches 2022-12-07 22:57:15 +01:00
Noah van der Aa
6513000165 Fix a handful of 1.19.3 compile issues (#8615) 2022-12-07 22:36:56 +01:00
Nassim Jahnke
bbd997db62 More patchidy patched patches 2022-12-07 22:35:34 +01:00
Nassim Jahnke
810c0219d9 More patchy patched patches 2022-12-07 22:05:01 +01:00
Nassim Jahnke
00dec09758 Patching patched patched patches 2022-12-07 21:16:54 +01:00
Nassim Jahnke
eac356d807 Patching patched patches 2022-12-07 20:22:28 +01:00
Nassim Jahnke
d4e6ee3d12 Moar, fix API 2022-12-07 19:52:24 +01:00
Nassim Jahnke
ee75b5dc2d Patching patches 2022-12-07 19:32:25 +01:00
Nassim Jahnke
b748ab8e70 Patches 2022-12-07 18:53:34 +01:00
Nassim Jahnke
d0386f21e8 First server patches 2022-12-07 18:08:55 +01:00
Nassim Jahnke
b7dd55ce72 API patches 2022-12-07 17:46:46 +01:00
Jake Potrebic
bea0e28dc4 Add missing Fluid type (#8608) 2022-12-06 10:41:04 -08:00
Noah van der Aa
1ae3999c8f Limit pet look distance (#8612) 2022-12-06 19:10:58 +01:00
Shane Freeder
ec00900b8b Fix dumplisteners missing folder creation 2022-12-06 04:02:44 +00:00
Yannick Lamprecht
c57f86c7ab Player Entity Tracking Events (#4722) 2022-12-03 23:46:38 +01:00
Jake Potrebic
31ec776281 Updated Upstream (Bukkit/CraftBukkit) (#8604)
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:
38866413 SPIGOT-6765: Pass WorldInfo, Random and coordinates to ChunkGenerator should methods

CraftBukkit Changes:
f3dab3a48 SPIGOT-7191: TNT minecart explosions crash the server
b5aa0bed9 SPIGOT-7184: ExplosionPrimeEvent not called for ExplosiveMinecart
e7aab5493 SPIGOT-6765: Pass WorldInfo, Random and coordinates to ChunkGenerator should methods
2022-12-03 10:19:09 -08:00
Bjarne Koll
ce991b96eb Fully deserialise persistent anger post async load (#8560)
The modified patch prevents entity loading off the main thread when
entities are initially loaded.

However, the initial loading of an entity is not the only time the
Entity#readAdditionalSaveData method is called. Commands like /data also
invoke the method (through Entity#load) to update an entities data
without completely re-creating it.

This however breaks with the current patch, as the patch moves parts of
the entity lookup for persistent anger deserialisation into the first
tick of an entity (which obviously is only called once and hence not
re-run when an already ticking entity is modified as laid out above).

This change actively runs the now split logic for deserialisation again
if the entity has already ticked its first tick. This way, initial
deserialisation is still split into one off thread and the first tick
parts, but following main thread deserialisations can happen completely
inside Entity#readAdditionalSaveData is called.
2022-12-02 18:09:41 +01:00
Jake Potrebic
b9401e6d3c Sync offhand slot in menus (#7341) 2022-12-01 13:01:49 -08:00
Jason Penilla
5756691b5a Fix whitespace error in recent patch 2022-11-28 11:10:26 -07:00
Lulu13022002
08bcef4859 Handle legacy quirk in the console formatter (#8434) 2022-11-28 14:41:29 +01:00
Denery
2402c125aa Fix preemptive connection dropping during shutdown process (#8546) 2022-11-27 20:20:31 +03:00
sandtechnology
e9b9c0b332 Fix packet duplicating at some points (#8566)
Due to the weakly consistent of ConcurrentLinkedQueue iterator, at some points, packet will be resent twice times or more, causing some weird behaviors (e.g. kicked for illegal movement since the same ClientboundPlayerPositionPacket was sent two times). This changes for the patch add a flag for marking if the packet was consumed to prevent such issue and ensure consistently of the packet queue.
2022-11-28 00:36:35 +08:00
Jason Penilla
59d8df6cba Add /paper dumplisteners tofile and increase detail of command output (#8592) 2022-11-26 10:36:11 -07:00
Ján Villim
25196237b1 Added ability to control player's insomnia and phantoms spawning (#6500) 2022-11-26 17:59:04 +01:00
Owen1212055
91869b8753 Schoolable Fish API (#7089) 2022-11-25 21:21:40 -05:00
SoSeDiK
c30dcbbc4c Allow using degrees for ArmorStand rotations (#7847) 2022-11-26 03:42:30 +02:00
Noah van der Aa
0d81f1e394 Friction API (#6611) 2022-11-26 01:23:12 +01:00
Kezz
898dd9224a Add Tick TemporalUnit (#5445) 2022-11-25 21:05:42 +00:00
Jake Potrebic
06be0d0b4d Add displayName methods for advancements (#8584) 2022-11-24 23:05:48 -08:00
Jake Potrebic
26993f7801 ItemStack damage API (#7801) 2022-11-24 22:52:00 -08:00
Jake Potrebic
59db8e8bc9 Fix async entity add due to fungus trees (#7626) 2022-11-24 22:32:29 -08:00
Jake Potrebic
86b0932a3b Fixes potential issues arising from optimizing getPlayerByUUID (#8585) 2022-11-24 22:22:19 -08:00
Amy
9cbb983d0d Fix chest relooting mechanics (#8580) 2022-11-24 23:21:40 +00:00
Warrior
7f4f5f8f3b Add /paper dumplisteners command (#8507)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Co-authored-by: TwoLeggedCat <80929284+TwoLeggedCat@users.noreply.github.com>
2022-11-23 23:28:38 +01:00
Lulu13022002
3375abab49 More vanilla friendly methods to update trades (#8478) 2022-11-23 22:38:49 +01:00
Jake Potrebic
48d31a56e9 Add api to resolve components (#7648) 2022-11-22 20:53:50 -08:00
Shane Freeder
3c0aa837c1 Fix Varint21FrameDecoder cached length buf usage 2022-11-22 17:50:31 +00:00
Lulu13022002
944be7b031 Avoid a cubed max search distance for POIs (#8576)
The max search distance used to get the closest Poi data on X/Z axis is cubed
instead of squared (one time in the parameter and another time in the function)
for almost all search.
Generally this has been hidden by another check that already does a pre
distance check between the poi pos and the source pos for individual
component but the issue still happens for diagonal distance search.
Discovered by Samsuik
2022-11-21 16:02:21 +01:00
Jakub Žáček
b36d2af7d5 Add Player Warden Warning API (#8470) 2022-11-20 19:53:58 +01:00
Jake Potrebic
b121c04895 Moving ATs from the at file to individual patches (#8573) 2022-11-19 15:53:20 -08:00
Noah van der Aa
14d69488ad Strip coordinates from lodestone compasses (#8561) 2022-11-19 22:41:09 +01:00
Owen1212055
0bb4b6ead5 Add more collision code skipping logic (#7581) 2022-11-19 16:14:19 -05:00
Lulu13022002
f07cda9bb9 Sync chunk load command improvements (#8554) 2022-11-19 20:10:13 +01:00
William Blake Galbreath
7ad5dcb810 Fix MC-179072 (#8421) 2022-11-19 12:23:31 -06:00
Melncat
da7eb6b942 Fix MC-121048 (#8429)
This moves the setHealth call to below the recordDamage call to prevent
recordDamage from clearing the CombatTracker, since recordDamage will
clear the CombatTracker if the entity is dead. This fixes death messages
such as the "doomed to fall" messages.
2022-11-18 20:04:52 -08:00
Lulu13022002
72369d4f40 Reorder bukkit damage source entity for explosion (#8553) 2022-11-19 03:14:52 +01:00
Jake Potrebic
a81c97eafe Fix/improve Affects Spawning API (#7329) 2022-11-15 11:15:01 -08:00
Jake Potrebic
f93eb6e135 update yarn param mappings (#8563) 2022-11-12 12:57:41 -08:00
braindead
97cb10205d fix MC-252817 (green map markers do not dissappear) (#8545) 2022-11-12 14:16:25 -05:00
Jake Potrebic
1221fdbc95 ensure reset EnderDragon boss event name (#8562) 2022-11-12 10:34:14 -08:00
Owen1212055
af85b6071c Cleanup reputation API + back with an EnumMap instead of array (#8258)
Resolves: #7142
2022-11-12 12:41:22 -05:00
Noah van der Aa
da071ba78f Show exception when headless JRE detection is triggered (#8559) 2022-11-12 13:09:54 +01:00
Owen1212055
36d8f327e8 Add PrePlayerAttackEntityEvent (#8369)
Allows you to cancel player event attacking, preventing things like attack sounds from being played.
2022-11-09 22:05:58 -05:00
Jake Potrebic
ac7f94e4cf Updated Upstream (CraftBukkit) (#8548) 2022-11-09 16:05:46 -08:00
Shane Freeder
435cc8ebd8 Cleanup misc import from last commit 2022-11-06 22:46:23 +00:00
Shane Freeder
f5e9a14a25 Prevent compass from loading chunks 2022-11-06 22:37:34 +00:00
Owen1212055
0ea0d39edf Properly resend entities (#7041) 2022-11-05 14:50:16 -04:00
Jason Penilla
d8be0e795b Update Commodore modifications (#8542)
* Handle ldc insn for getOriginalOrRewrite in Commodore

* Remove fastutil rewrite

It's no longer relocated upstream
2022-11-04 22:16:57 -07:00
Jake Potrebic
2f0e0c5f2b Fix Advancement#getDisplay() api break (#8541) 2022-11-04 15:59:15 -07:00
Astro Angelfish
bf532ab0fb [ci-skip] Rename Paper stop tp Paper end. (#8539) 2022-11-05 00:08:01 +08:00
Jake Potrebic
a5e916fc00 Remove old redundant fix (#8530) 2022-11-03 14:03:31 -07:00
Lulu13022002
4400eb6600 Call PlayerLaunchProjectileEvent for trident (#8027) 2022-11-03 19:43:50 +01:00
Shane Freeder
857ece0812 Fix setting difficulity inside of API (Fixes #8533)
Vanilla moved some logic around setting the world difficulty which
was not adopted for inside of upstream properly, this addresses another
such case
2022-11-01 18:29:52 +00:00
Jason Penilla
bfdafa934b Build updates 2022-10-31 15:25:30 -07:00
Denery
ffceefa32f Fix EntityCombustEvent cancellation issues (#8529) 2022-10-31 19:31:40 +03:00
Jake Potrebic
13442cd5c9 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#8515)
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:
9a4de097 SPIGOT-7171: Ability to get the IP/hostname players are requesting status of

CraftBukkit Changes:
f43634ae4 SPIGOT-7170: Cannot set slots in custom smithing inventory
48f3a2258 SPIGOT-7171: Ability to get the IP/hostname players are requesting status of
30e31b4d1 SPIGOT-7177: Certain blocks don't call BlockCanBuildEvent
982364797 SPIGOT-7174: Avoid adding air to CraftMetaBundle

Spigot Changes:
6198b5ae PR-122: Add missing parentheses to pumpkin and melon growth modifier
1aec3fc1 Rebuild patches
2022-10-30 19:44:25 -07:00
Noah van der Aa
f40ba18fd0 Fix pumpkin growth modifier (#8517) 2022-10-30 13:27:37 +01:00
Owen1212055
4fad96576f Deprecate unused VehicleEntityCollisionEvent methods (#8498) 2022-10-29 13:18:17 -04:00
William Blake Galbreath
d786bfda5c Fix MC-147659 (#8423) 2022-10-27 19:53:16 -05:00
Hannes Greule
878600ebbc Fix wrong descriptor in ASMEventExecutorGenerator (#8506) 2022-10-28 02:27:33 +02:00
Jason Penilla
3b7ad4bb6f Make CommandSyntaxException implement ComponentMessageThrowable (#8513) 2022-10-27 10:10:28 -07:00
Jason Penilla
731f32f889 Fix EntityArgument suggestion permissions to align with EntitySelector#checkPermissions (#8511) 2022-10-26 18:31:55 -07:00
Jake Potrebic
f8cf06b774 Track projectile source for fireworks from dispensers (#8044) 2022-10-26 17:44:28 -07:00
Jake Potrebic
219d159e4d Fix a bunch more forceDrops for dropping items (#8095) 2022-10-26 17:32:03 -07:00
Noah van der Aa
f84fb32dc5 Add allow server listing & text filtering client options (#7595) 2022-10-27 01:09:03 +02:00
Lulu13022002
0af5c64201 Fix new block data in EntityChangeBlockEvent for silverfish when mobGriefing isn't enabled (#8099) 2022-10-27 00:05:15 +02:00
Spottedleaf
1e44e31be7 Add dirty flag to chunk tick lists
For whatever reason, vanilla does not mark the chunk as
dirty when changing its tick lists.

We also have it return dirty if the time since the last
save has changed, since it would affect the tick offsets
in the ticklist.
2022-10-24 19:48:19 -07:00
Spottedleaf
11bb97e66c Fix incorrect handling of mustNotSave
CB used the dirty flag to construct the chunk unload event,
but then sets mustNotSave to the inverted value of the event
after calling the event without considering that the chunk may
actually be brought up to loaded status again later. Then, CB
overrides the isUnsaved method of LevelChunk to additionally
use mustNotSave.

Thus, if the chunk is not marked dirty when unloading, the
mustNotSave value will be set to true. Then, once the chunk
is reloaded and edited the dirty flag will be set. However,
when unloading the chunk finally, the isUnsaved method
will return false due to mustNotSave being true. Thus, the
chunk will never be saved.

To fix these issues, no longer make mustNotSave override
isUnsaved and always set the save flag for the chunk unload
event.

This issue started popping up recently due to the recent
change to mark chunks as not dirty after saving them, which
increased the chance of the save issue occurring in the first
place.
2022-10-24 19:23:46 -07:00
Jason Penilla
b9481cae74 Move classes added to net.minecraft.server to paper packages (#8500) 2022-10-24 12:43:46 -07:00
evan
95bd943ca3 Only limit global sounds to same world if limiting radius (#8499) 2022-10-23 13:52:40 -05:00
Jake Potrebic
bac7ba4c5a Updated Upstream (Bukkit/Spigot) (#8445) 2022-10-23 10:41:34 -07:00
Spottedleaf
0aa7d1a07f Mark chunks as saved after saving them
Prevents re-saving them again later.
2022-10-23 09:09:18 -07:00
Owen1212055
646d59a575 Ignore impossible spawn tick (#8493)
Co-authored-by: dannyball710 <dannyball710@gmail.com>
2022-10-23 00:45:07 -04:00
Owen1212055
c1aac9ca35 Don't fire EntityToggleSitEvent on deserialization & reorder some api patches (#8495) 2022-10-22 22:55:28 -04:00
Owen1212055
fc19cbd800 Add Moving Piston API (#7019) 2022-10-22 20:37:37 -04:00
SoSeDiK
e7b3fba8e6 Add EquipmentSlot convenience methods (#8477) 2022-10-23 02:50:12 +03:00
uku
9e743bccff Add config setting for grindstone overstacking (#8156) 2022-10-23 01:25:17 +02:00
vytskalt
201ba4d328 Add fire-tick-delay option (#8037) 2022-10-23 01:57:09 +03:00
IEatBeans
634f212bd5 Added EntityToggleSitEvent (#7579)
* Added EntityToggleSitEvent Patches

* Updated event phrasing, fixed Boolean not being primitive, pandas now fire event, and event is defined and called in 1 line

* Updated event phrasing, fixed Boolean not being primitive, pandas now fire event, and event is defined and called in 1 line

* Added EntityToggleSitEvent Patches

* Added EntityToggleSitEvent Patches

* Added EntityToggleSitEvent Patches
2022-10-22 15:20:52 -07:00
thelooter
28e6d9fd86 Add MaterialTags for the different Types of Tools (#8049)
* Add MaterialTags for the different Types of Tools

* Add Netherite Tools Tag
2022-10-22 23:51:34 +02:00
Lukas Alt
6ffb491076 Optimized dirt and snow spreading (#5124)
* Optimized dirt and snow spreading

* Add optimization to bukkit event call

* Clarify var names

Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2022-10-22 20:13:59 +02:00
Lukas Alt
d68e096dd8 fixed entity vehicle collision event not called (#5053) 2022-10-22 19:09:45 +02:00
Noah van der Aa
95e37fca48 Detect headless JREs (#8491)
Crashes caused by the missing AWT dependency come up in the support channels fairly often.
This patch detects the missing dependency and stops the server with a clear error message,
containing a link to instructions on how to install a non-headless JRE.
2022-10-22 18:57:21 +02:00
Noah van der Aa
ddc8e1fd7c Load Allay duplication cooldown as a long (#8410)
It is saved as a long, and the API exposes a long, so loading it as an int may cause issues like overflows.
2022-10-22 16:16:24 +02:00
Jason Penilla
13f7207665 Add stacktrace deobfuscation in more places (#8484) 2022-10-18 19:21:07 -07:00
Spottedleaf
03245caed0 Fix inconsistent isChunkLoaded calls
When we update the chunk state to border, it should be
the case that isChunkLoaded returns true and that
getChunkIfLoadedImmediately returns a non-null value.
Now add the chunk to the loaded map before making any
callbacks after updating to border state.
2022-10-18 08:11:23 -07:00
Nassim Jahnke
2f1aaaa85c Fix another case of missing chat headers 2022-10-18 10:20:35 +02:00
Melncat
cd71f3c427 Add LivingEntity knockback API (#8479) 2022-10-18 00:33:58 -07:00
Jakub Žáček
154762a316 Add converted Slot number to PlayerInventorySlotChangeEvent (#8482) 2022-10-18 09:32:22 +02:00
SoSeDiK
50c3dccb29 Add LivingEntity#swingHand(EquipmentSlot) convenience method (#8456) 2022-10-16 14:49:56 +03:00
Jakub Žáček
fc419cfa50 Fix package for PlayerInventorySlotChangeEvent (#8475)
Co-authored-by: Jakub Zacek <dawon@dawon.eu>
2022-10-16 09:49:47 +02:00
19MisterX98
a35758c72d FIx bedrock patterns (#8474) 2022-10-16 00:34:10 +02:00
Lexi
11281d0789 Avoid usages of RecipeChoice#getItemStack() (#8453)
Replaces some internal usages of this method with RecipeChoice#test(ItemStack) and deprecates every other method still utilizing this legacy method.
2022-10-15 15:20:12 -04:00
SoSeDiK
254a07415d Allow changing bed's 'occupied' property (#8458) 2022-10-14 11:37:01 +03:00
Lulu13022002
c0e86f0599 Avoid cycle deprecation (#8466) 2022-10-13 13:52:04 +02:00