Commit graph

8120 commits

Author SHA1 Message Date
Layla Silbernberg / LadySilver47
244e4b2322 Added missing enchantables to material tags (#9888) 2023-11-05 00:37:51 +01:00
Tamion
8e8bb348c6 Add more API to LingeringPotionSplashEvent (#9901)
* Add createAreaEffectCloud API

* Add missing NotNull

* Add missing Paper comments

* Better solution

* Better naming

* New patch and rename

* rename patch
2023-11-05 00:24:06 +01:00
NonSwag
8d39b63d19 fix secure profile with proxy online mode (#9700) 2023-11-05 00:12:47 +01:00
booky10
7cd33fbd26 Broadcast take item packets with collector as source (#9884)
This fixes players (which can't view the collector) seeing item pickups with themselves as the target.
2023-11-04 23:16:55 +01:00
TonytheMacaroni
e83e680321 Add predicate for block when raytracing (#9691)
* Add predicate for block data when raytracing blocks

* Match based on block, instead of block data

* Use instanceof instead of casting

* Use Position instead of Location, add overload for rayTraceEntities

* Implement requested changes

* Invert predicate

* Cleanup
2023-11-04 18:00:51 -04:00
TrollyLoki
6e88b4fa1e Add API to get the collision shape of a block before it's placed (#9821)
* Add API to get the collision shape of a block before it's placed

* Tweak API documentation

* Clarify behavior

* Rebase

* Rebase
2023-11-04 17:32:10 -04:00
Jake Potrebic
c690244527 Fix a bunch of stuff with player spawn locations (#9887)
If a playerdata doesn't contain a valid, loaded world, reset
to the main world spawn point
2023-11-04 14:11:55 -07:00
powercas_gamer
5cfbe38b31 Make Team extend ForwardingAudience (#9852) 2023-11-04 21:50:56 +01:00
booky10
d1c10d63dc Add entity API for getting the combined gene of a Panda (#9891) 2023-11-04 21:28:23 +01:00
Tamion
5a34a7c895 Deprecate Player#boostElytra (#9899)
The Paper method was chosen for deprecation because it was more
restrictive in that it has an isGliding check.
2023-11-04 21:20:13 +01:00
Jake Potrebic
0609eeadec Use a server impl for hopper event to track get/setItem calls (#9905)
* Use a server impl for hopper event to track getItem/setItem calls

* Rebase

* Comments
2023-11-04 12:58:40 -07:00
Warrior
2cef1cc67e Include packet class name in packet encoding error messages (#9907) 2023-11-04 20:34:34 +01:00
booky10
939f31d33c Remove "fix-curing-zombie-villager-discount" exploit option (#9895) 2023-11-04 20:20:01 +01:00
Lulu13022002
ab5fa1f224 Remove duplicate water-sensitivity damage for unaware mobs (#9908) 2023-11-04 20:10:27 +01:00
Warrior
3230dd880e Add raw iron & raw copper blocks to anti xray defaults (#7622) 2023-11-04 16:07:48 +01:00
TomTom
913522cb6b Readd 0414 use distance map to optimise entity tracker (#9868) 2023-11-03 15:05:57 +01:00
Nassim Jahnke
0d2a5216f6 Add another slot sanity check 2023-11-03 14:49:55 +10:00
Md5Lukas
c0e6952a9a Fix villager infection chance not being handled properly (#9897) 2023-11-01 22:59:00 +01:00
Jake Potrebic
374f24c159 Fix NPE when no valid world is found on legacy Players (#9885) 2023-10-29 08:33:32 -07:00
booky10
5df63ec242 Fix entity camera not being reset when cancelling spectating start/stop events (#9883) 2023-10-29 02:45:07 +02:00
Shane Freeder
5165228828 [ci skip] Fix module derp 2023-10-29 01:32:13 +01:00
Shane Freeder
03bd83a051 [ci skip] Fix author in last patch 2023-10-29 00:58:15 +01:00
Gero
79f1f1ba5e Implement Velocity VarInt optimizations (#8418)
---------

Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
2023-10-29 01:56:47 +02:00
booky10
ccfb6b4680 Add player idle duration API (#9833)
* Add player idle duration API

Implements API for getting, setting and resetting a player's idle duration.

* Remove idle duration setter

* Rebase
2023-10-29 01:25:46 +02:00
caramel
1dcda2491e fix UnsafeValues#loadAdvancement doesn't recalculate position (#9846) 2023-10-29 08:13:33 +09:00
Kenox
f48bd30f89 Fix warden spawn reason from DEFAULT to NATURAL (#8744) 2023-10-29 01:10:31 +02:00
caramel
c7b9f77124 Cleanup disable explosion knockback patch (#9858) 2023-10-29 07:50:26 +09:00
Tamion
8222e33a11 Fix PotionAPI ignores icon flag (#9864)
* fix PotionAPI ignores icon flag

* also fix CraftPotionUtil#toBukkit

* also CraftPotionUtil#fromBukkit

* use CraftPotionUtil
2023-10-29 00:39:47 +02:00
Warrior
9db92731a1 Fix crash when version_history.json is empty (#9871) 2023-10-29 00:24:54 +02:00
SplotyCode
22672b4be2 Fix null item in sendEquipmentChange (#9869) 2023-10-29 00:15:20 +02:00
Jake Potrebic
06ac3424fa Updated Upstream (Bukkit/CraftBukkit) (#9876)
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:
19830133 PR-925: Add hit entity/block to events extending ProjectileHitEvent

CraftBukkit Changes:
5a72c3c04 SPIGOT-7510: Try to fix broken reflection usage of plugins
6fa69f235 PR-1281: Add hit entity/block to events extending ProjectileHitEvent
224f733ac Fix NPE introduced in #f4d977e
2023-10-28 15:02:13 -07:00
Lulu13022002
8f1cb77f10 Resend entity using the bundle packet (#9853) 2023-10-27 15:48:13 +02:00
Jason Penilla
cd2ebaa455 Update paperweight to 1.5.9 (#9872) 2023-10-26 16:34:58 -07:00
Jake Potrebic
3a4d982c0f Updated Upstream (Bukkit/CraftBukkit/Spigot) (#9861) 2023-10-26 14:56:40 -07:00
Jason Penilla
5abcfb3d6b Fix log level of advancement debug message (#9860) 2023-10-23 10:07:44 -07:00
Jake Potrebic
5f694a81ab Updated Upstream (Bukkit/CraftBukkit/Spigot) (#9825)
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:
897a0a23 SPIGOT-5753: Back PotionType by a minecraft registry
255b2aa1 SPIGOT-7080: Add World#locateNearestBiome
ff984826 Remove javadoc.io doc links

CraftBukkit Changes:
71b0135cc SPIGOT-5753: Back PotionType by a minecraft registry
a6bcb8489 SPIGOT-7080: Add World#locateNearestBiome
ad0e57434 SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag
b3efca57a SPIGOT-6400: Use Mockito instead of InvocationHandler
38c599f9d PR-1272: Only allow one entity in CraftItem instead of two
f065271ac SPIGOT-7498: ChunkSnapshot.getBlockEmittedLight() gets 64 blocks upper in Overworld

Spigot Changes:
e0e223fe Remove javadoc.io doc links
2023-10-22 12:12:00 -07:00
Shane Freeder
69b2101f34 Temp fix for serialisable blockdata 2023-10-22 19:56:25 +01:00
MiniDigger | Martin
44214b0015 [ci skip] cleanup some ATs (#9840) 2023-10-22 02:17:55 +02:00
Lulu13022002
64b1b0fc06 Fix NPE in SculkBloomEvent world access (#9857) 2023-10-21 22:20:24 +02:00
Brokkonaut
0049c47717 Don't check if we can see non-visible entities 2023-10-21 20:53:33 +01:00
Spottedleaf
be034cd985 Initialise default nibble arrays in ChunkAccess directly
When ChunkAccess was converted to an abstract class some versions
ago, the code to initialise nibble arrays should have been moved.
However, the code was not moved and so now mods constructing their
own implementations of ChunkAccess would not have the nibble arrays
initialised.

This is ported to Paper from Starlight to keep the code base in sync,
not because it fixes anything known.
2023-10-16 18:57:45 -07:00
Spottedleaf
b119425c8e Fix mushrooms not generating in swamps
During feature generation, light data is not initialised and
will always return 15 in Starlight. Vanilla can possibly return
0 if partially initialised, which allows some mushroom blocks to
generate.

In general, the brightness value from the light engine should not
be used until the chunk is ready. To emulate Vanilla behavior better,
we return 0 as the brightness during world gen unless the target
chunk is finished lighting.

The regular light retrieval outside of WorldGenRegion remains
the same, as behaviorally chunks not lit should be at max
skylight and zero block light.
2023-10-16 18:52:28 -07:00
Spottedleaf
b6f04d399f Remove unused skyLightSources
There is no point in initialising the sources in Starlight,
as we do not use them. Additionally, they are not saved to
disk so we do not need them.

Maintaining and initialising them is not a negligible cost,
which is why they are being removed.
2023-10-16 18:49:41 -07:00
caramel
664d59e3d7 sync netty version with vanilla (#9842) 2023-10-15 23:41:17 +09:00
caramel
ee307c382a fix recipe packet limiter (#9841) 2023-10-15 23:11:15 +09:00
Md5Lukas
6dea0a9f7c Add additional tags to ItemMeta obfuscation filtering (#9665) 2023-10-14 23:41:15 +02:00
Md5Lukas
c7a0d627ba Add BlockData setter for FallingBlock (#9829) 2023-10-14 22:46:31 +02:00
Jakub Zacek
e7c0e0e246 Replace bukkit Consumers with java consumers (#9836) 2023-10-14 22:43:32 +02:00
froobynooby
2b426027aa Don't call options events on login (#9834)
* Don't call options events on login

* Merge changes into client options API patch
2023-10-15 04:02:00 +09:30
SplotyCode
c5941e1633 Fix CraftPlayerProfile#setId regression (#9822) 2023-10-12 03:20:25 +02:00