Commit Graph

7223 Commits

Author SHA1 Message Date
b3694909dc [ci skip] Update workflow dependencies (#8489) 2022-10-22 09:13:05 -03:00
13f7207665 Add stacktrace deobfuscation in more places (#8484) 2022-10-18 19:21:07 -07:00
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
2f1aaaa85c Fix another case of missing chat headers 2022-10-18 10:20:35 +02:00
cd71f3c427 Add LivingEntity knockback API (#8479) 2022-10-18 00:33:58 -07:00
154762a316 Add converted Slot number to PlayerInventorySlotChangeEvent (#8482) 2022-10-18 09:32:22 +02:00
50c3dccb29 Add LivingEntity#swingHand(EquipmentSlot) convenience method (#8456) 2022-10-16 14:49:56 +03:00
fc419cfa50 Fix package for PlayerInventorySlotChangeEvent (#8475)
Co-authored-by: Jakub Zacek <dawon@dawon.eu>
2022-10-16 09:49:47 +02:00
a35758c72d FIx bedrock patterns (#8474) 2022-10-16 00:34:10 +02:00
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
254a07415d Allow changing bed's 'occupied' property (#8458) 2022-10-14 11:37:01 +03:00
c0e86f0599 Avoid cycle deprecation (#8466) 2022-10-13 13:52:04 +02:00
e827d176c4 Update settings directory path in exceptions (#7968) 2022-10-13 13:38:06 +02:00
683149f9a1 Elder Guardian appearance API (#8455) 2022-10-13 13:26:51 +03:00
c0e803bfd2 Make CraftMinecartTNT public
adding the getHandle method causes some issues with things like ProtocolLib
due to the expectation that all classes which provide a getHandle method
are public.
2022-10-12 16:10:52 +01:00
c8d979234f Fix a classloading issue in tests (#8459) 2022-10-11 20:05:28 -07:00
420e6ac365 Fix stacktrace in server tests 2022-10-11 16:52:49 -07:00
07f0c9755b Add PlayerInventorySlotChangeEvent (#7321) 2022-10-11 23:49:10 +02:00
e7535118d9 Add missing Entity + Projectile API (#7632) 2022-10-11 17:04:26 -04:00
9ff21585db Expose isUnderWater to Entity (#8454) 2022-10-11 15:43:10 +03:00
5afab91756 Add missing structure set seed configs (#8030) 2022-10-09 13:19:35 -07:00
5eb4ada324 Fix configs that relied on outdated min/max y levels (#6986) 2022-10-08 23:52:09 -07:00
68ca16f075 Add Unmodifiable annotations to getDrops methods (#8440) 2022-10-07 11:51:54 -07:00
3ef916da77 Exempt players in creative/spectator from nether ceiling damage (#8427) 2022-10-07 20:43:26 +02:00
9e43d68e57 Correctly handle interactions with items on cooldown (#8008) 2022-10-07 08:22:45 -07:00
365d10556b EntityPickupItemEvent fixes (#8096) 2022-10-04 21:38:39 -07:00
6e4207e2d9 Fix custom piglin interest items (#8097) 2022-10-04 20:28:46 -07:00
bf82a75a52 Remove unnecessary onTrackingStart during nav warning
Closes #8396
2022-10-03 20:50:53 +02:00
bb41ef89ff Avoid resizing of ArrayList in ChunkMap#getPlayers (#8416) 2022-10-03 19:22:01 +02:00
ad03c22822 [ci skip] Minor patch cleanup 2022-10-03 19:07:03 +02:00
b483d1d056 Fix nothing mlg (#8432) 2022-10-03 18:44:19 +02:00
0254c46a8b Updated Upstream (Bukkit/CraftBukkit) (#8430)
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:
09943450 Update SnakeYAML version
5515734f SPIGOT-7162: Incorrect description for Entity#getVehicle javadoc
6f82b381 PR-788: Add getHand() to all relevant events

CraftBukkit Changes:
aaf484f6f SPIGOT-7163: CraftMerchantRecipe doesn't copy demand and specialPrice from BukkitMerchantRecipe
5329dd6fd PR-1107: Add getHand() to all relevant events
93061706e SPIGOT-7045: Ocelots never spawn with babies with spawn reason OCELOT_BABY
2022-10-02 09:56:36 +02:00
1fc4118bd8 Only create paper.yml-README.txt on config conversion (#8334) 2022-10-02 16:29:09 +09:00
88d5b59398 Fix a handful of vanilla bugs (#8187) 2022-10-01 10:39:42 -07:00
4a28b308a5 Add getDrops to BlockState and isPreferredTool to BlockData (#8284) 2022-10-01 03:30:00 -07:00
18149f8cb2 Add system property to dump stack on bad plugin class access (#8417) 2022-10-01 11:49:27 +02:00
f064550583 Fix other jigsaw related disconnect bug (#8414) 2022-10-01 01:08:07 -07:00
bcbb7dae76 Don't print full packages in new chunk system classes
Closes #8391, #8412
2022-09-30 23:19:51 +02:00
99a00c8e1c Fix wrong yaw and pitch of CommandSourceStack#getBukkitLocation (#8411) 2022-09-30 21:03:42 +02:00
1fe1b8b78e use BlockFormEvent for mud converting into clay (#8398)
Co-authored-by: Legitimoose <legitimoose@gmail.com>
2022-09-30 03:33:31 -07:00
87abd1cde2 Reduce allocation rate for checkBlock
Use ObjectOpenHashSet instead of HashSet
Remove unnecessary chunkToSave modification
2022-09-29 09:04:52 -07:00
3acabf7aa9 Do not log throwable for duplicate entity adds 2022-09-29 08:53:33 -07:00
f044bd9e6c Mark parsed PoiChunks with data as not loaded (#8405)
Previously, PoiChunk#empty would create a new empty poi chunk with
loaded already set to true, as no data was contained in the chunk.
This allowed the poi chunk to skip expensive trips to the main thread.

However, PoiChunk#parse used #empty to create the initial PoiChunk
instance that is then filled with data.
This leads to PoiChunks returned from #parse to already be marked as
loaded, preventing the then needed trip to the tick thread to update
things like the village distance tracker.

To fix this, this commit now marks the PoiChunks loaded state as false
if the parse logic actually read and parsed any data.
This allows the PoiChunk#load method to properly run its callbacks when
called for the first time.
2022-09-29 17:54:47 +02:00
b1d359f247 [ci skip] Added the missing "d" character (#8267) 2022-09-29 17:36:01 +03:00
484512facb Fix jigsaw block kicking user (#8404) 2022-09-29 04:37:56 -07:00
79f4c49afc Update Velocity natives (#8387) 2022-09-29 04:18:20 -07:00
bf718e5334 [ci skip] shuffle patches and rebuild 2022-09-28 04:27:26 +01:00
60161bb02c Fix user auth thread pool queue 2022-09-27 18:00:46 +02:00
f7c05166ab Fixes a couple issues with entity spawn reasons (#8390) 2022-09-26 17:24:56 -07:00
9fdc8516b8 Update snekyaml 2022-09-26 19:47:22 +02:00