Commit Graph
100 Commits
Author SHA1 Message Date
Lulu13022002 46b6f65764 Fix NPE with spark when CraftServer is not init yet (#11558) 2024-11-01 21:37:45 +01:00
Lulu13022002 d9fcd64770 get previous redstone level from the right state for experimental wires 2024-10-31 16:48:37 +01:00
Lulu13022002 5e3ea5c8f9 don't resend effects when PlayerItemConsumeEvent is cancelled 2024-10-30 17:07:49 +01:00
Lulu13022002 f88986a2c2 fix "is_freezing" damage type tag 2024-10-30 14:55:46 +01:00
Lulu13022002 e50219c8fd cleanup bugfix patch 2024-10-29 16:54:40 +01:00
Lulu13022002 25b6464c5e remove some leftovers 2024-10-29 15:33:42 +01:00
Lulu13022002 b501e56e80 Fix NPE and StackOverflowError for dispensers 2024-10-27 18:47:50 +01:00
Lulu13022002 20093331cf fix DamageTypeTags init 2024-10-26 19:41:56 +02:00
Lulu13022002 a3a0e46862 fix item meta 2024-10-26 19:11:37 +02:00
Lulu13022002 7ce0d944b6 update generator 2024-10-26 18:03:25 +02:00
Lulu13022002 91978953f3 fix some issues 2024-10-25 20:09:45 +02:00
Lulu13022002 33ff3dff21 Restrict BlockProjectileSource#launchProjectile
Spigot recently revamped their CraftBlockProjectileSource impl to make use of
the the ProjectileItem logic. During this move however, a couple of types were
added which do not provide a sensible ProjectileItem implementation.

The commit restricts the API once again to types that represent useful
ProjectileItems, removing support for the trident, enderpearl and breeze variant
of the windcharge.
2024-10-21 18:17:45 +02:00
Lulu13022002 4286dff3d0 Add offline PDC API (#8117) 2024-10-12 21:38:18 +02:00
Lulu13022002 b54562400c Update launchProjectile API (#11300) 2024-09-21 21:19:02 +02:00
Lulu13022002 5217983dca Fix allowSpiderWorldBorderClimbing world config (#11321) 2024-09-06 23:15:29 +02:00
Lulu13022002andJake Potrebic e24e14e58d Re-implement maxLeashDistance world conf and call missing event (#11301)
* Re-implement maxLeashDistance world config and call missing event

* migrate config setting to double or default

* fixes

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-08-25 23:32:32 +02:00
Lulu13022002 403db04ae4 Prevent duplicate pickup event for piglins (#11322) 2024-08-25 19:27:31 +02:00
Lulu13022002 6da54bd440 Leashable API (#10961) 2024-08-17 23:17:18 +02:00
Lulu13022002 0a041c951d Update item data sanitization (#11227) 2024-08-17 22:30:21 +02:00
Lulu13022002 f011be78fc Implement more methods for horse inventories (#11147) 2024-08-17 00:27:47 +02:00
Lulu13022002andJake Potrebic d44aa26792 Handle custom registry elements properly (#11230)
* Handle custom registry elements properly

* update error message

Datapack made painting variant support is added in https://github.com/PaperMC/Paper/pull/11244

* change msg for art conversion

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-08-16 23:21:35 +02:00
Lulu13022002 0c47bf87a2 Re-implement portalCreateRadius world config (#11267) 2024-08-16 22:59:46 +02:00
Lulu13022002 42dae8d83e Fix scanForLegacyEnderDragon world config (#11262) 2024-08-16 21:45:07 +02:00
Lulu13022002 fee33bd1e2 Fix NPE for PlayerPostRespawnEvent#getRespawnedLocation (#11268) 2024-08-16 09:20:57 +02:00
Lulu13022002 815149208d Fix disableEndCredits world config (#11261) 2024-08-14 21:26:38 +02:00
Lulu13022002 4c7b6f5c05 Remove arbitrary book page limit (#11228) 2024-08-12 00:30:23 +02:00
Lulu13022002 e0bec73f14 Fix wrong spawn reason for trial spawners (#11229) 2024-08-11 00:19:54 +02:00
Lulu13022002andJake Potrebic 5e68331cc3 Fix tag key generator output inconsistencies (#11218)
* Fix tag key generator output inconsistencies

* use NonNull instead of NotNull for generated api

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-08-11 00:11:57 +02:00
Lulu13022002 1569c093c5 Fix CraftMetaShield equality (#11232) 2024-08-10 15:08:00 +02:00
Lulu13022002 61ad933f4d Fix a couple of ItemMeta related NPEs (#11149) 2024-07-23 10:11:00 +02:00
Lulu13022002 1f88247729 Fix horse inventories indices (#11139) 2024-07-22 15:17:25 +02:00
Lulu13022002 084923b9ac Call PlayerLaunchProjectileEvent for wind charge (#10911) 2024-07-15 17:07:07 +02:00
Lulu13022002 b8af72fa88 Don't require author and title to be set on signed book meta (#11068) 2024-07-14 15:33:52 +02:00
Lulu13022002 acbaa46a96 Swap some nullable annotations (#10960) 2024-06-24 00:42:44 +02:00
Lulu13022002 35acc5b73b Fix speed for launched trident using api (#10936) 2024-06-23 23:37:20 +02:00
Lulu13022002 189504bc7f Fix StackOverflowError for new dispenser interaction (#10949) 2024-06-23 22:24:17 +02:00
Lulu13022002 2891c40adb Add missing effect cause and deprecate PATROL_CAPTAIN cause (#10958) 2024-06-23 22:08:13 +02:00
Lulu13022002 8c6ba348c9 Fix wrong diff applying delta twice (#10959) 2024-06-22 20:11:34 +02:00
Lulu13022002 31ddf26e18 Preserve velocity for fireball (#10934) 2024-06-21 20:06:31 +02:00
Lulu13022002 ffff490cc8 deprecate and update some entity tags (#10932) 2024-06-21 18:51:00 +02:00
Lulu13022002 58268601ac Validate using_converts_to for food component (#10931) 2024-06-21 18:48:48 +02:00
Lulu13022002 22e64d8059 Fix NPE of AbstractArrow#getWeapon (#10933) 2024-06-21 18:48:29 +02:00
Lulu13022002 5c5a5fb93c Fix base damage for trident (#10948) 2024-06-21 18:48:18 +02:00
Lulu13022002 26fd1c1b56 Validate speed for tool component rule (#10923) 2024-06-20 18:32:32 +02:00
Lulu13022002 461f02dce2 Experimental annotation changes (#10914)
* Experimental annotation changes

* wind charge damage type is not experimental anymore
2024-06-20 18:03:09 +02:00
Lulu13022002 a362e724b2 Fix jukebox playable component not being applied on item meta (#10922) 2024-06-20 17:57:56 +02:00
Lulu13022002 bd9e2e7fe8 Handle alpha channel from potion_contents component (#10808) 2024-06-04 22:55:29 +02:00
Lulu13022002 cae5734b19 Fix max temper API for llama (#10823) 2024-05-29 20:17:56 +02:00
Lulu13022002 0ca35d0dd9 Fix more item desync when an event is cancelled (#10654) 2024-05-26 23:30:45 +02:00
Lulu13022002 dfcf0b3ac3 Fix integer overflow for lag compensating eating check (#10797) 2024-05-26 22:35:58 +02:00
Lulu13022002 fff2347845 Clear firework item properly (#10793) 2024-05-26 19:57:38 +02:00
Lulu13022002 f5963e84a3 Fix a few issues with ItemMeta (#10740) 2024-05-26 00:58:56 +02:00
Lulu13022002 8af4ab8bf7 Allow to define new map cursor types (#10782) 2024-05-25 23:56:44 +02:00
Lulu13022002 624d28817c Fix hopper pull event being skipped after the first call (#10667) 2024-05-07 14:28:45 +02:00
Lulu13022002 1465288208 [ci skip] Update old particle reference in javadoc (#10652) 2024-05-05 18:44:06 +02:00
Lulu13022002 b94c74495e Add missing experimental field and annotations (#10653) 2024-05-05 18:00:54 +02:00
Lulu13022002 e0adb01ddc update generator 2024-04-27 22:30:15 +02:00
Lulu13022002 ba5fe77f0f fix helmet damage reduction inconsistencies
See: https://github.com/PaperMC/Paper/issues/9555#issuecomment-1681120506
2024-04-27 21:56:29 +02:00
Lulu13022002 9c0da4515d fix PotionEffectType#getEffectAttributes 2024-04-27 21:48:14 +02:00
Lulu13022002 99625a6d53 [ci skip] Update book page/char limit for book meta doc (#10415) 2024-04-12 20:58:44 +02:00
Lulu13022002 d06c0b4571 Backport some stuff from the generators branch (#10365) 2024-04-06 23:51:47 +02:00
Lulu13022002 2089697232 Don't throw NPE for unplaced blockstate on #getDrops (#10366) 2024-04-06 23:26:56 +02:00
Lulu13022002 9665ac3903 Fix WaterBottleSplashEvent not forwarding hit result (#10203) 2024-02-10 20:27:29 +01:00
Lulu13022002 bda56c82ff Fix fox drops on death (#8862) 2024-02-10 01:07:10 +01:00
Lulu13022002 f7e469eb2e [ci skip] Cleanup events (#10202) 2024-02-01 10:15:57 +01:00
Lulu13022002 8b532bad3a Add visual blockdata api for primed tnt (#10146) 2024-01-20 00:01:12 +01:00
Lulu13022002 bdae546a5e Fix world border edge collision (#10053)
The collision shape of the border is determined by flooring the min values and ceiling the max values, so the isCollidingWithBorder() function should mirror such behavior.
2023-12-20 06:31:07 +01:00
Lulu13022002 4fc499dde8 optimise explosion damage further
and use the right entity for the dragon part damage
2023-12-08 20:47:27 +01:00
Lulu13022002 fc727a05cd remove old diff 2023-12-06 19:26:53 +01:00
Lulu13022002 ab5fa1f224 Remove duplicate water-sensitivity damage for unaware mobs (#9908) 2023-11-04 20:10:27 +01:00
Lulu13022002 8f1cb77f10 Resend entity using the bundle packet (#9853) 2023-10-27 15:48:13 +02:00
Lulu13022002 64b1b0fc06 Fix NPE in SculkBloomEvent world access (#9857) 2023-10-21 22:20:24 +02:00
Lulu13022002 9b7863a607 Some jd fixes (#9781) 2023-10-01 02:20:51 +02:00
Lulu13022002 8560e471b8 Fix SuspiciousStewMeta 2023-09-23 16:41:51 +02:00
Lulu13022002 645afb11f7 fix test 2023-09-23 13:38:46 +02:00
Lulu13022002 77719b1566 some compile issues 2023-09-22 19:25:18 +02:00
Lulu13022002 fdf4e8726b more work
all server patches done (almost)
2023-09-22 18:59:52 +02:00
Lulu13022002 0925b4af6f some work 2023-09-22 18:11:35 +02:00
Lulu13022002 6cc04e3081 Add missing deprecation (#8886) 2023-09-21 10:35:38 +02:00
Lulu13022002andJake Potrebic 4d585e0587 Fix silent equipment change for mobs (#9677)
* Fix silent equipment change for mobs

* rebased and added test to make sure all overrides are added

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2023-09-17 01:27:11 +02:00
Lulu13022002 abbdae4f53 Swap some nullable annotations (#9696) 2023-09-14 12:44:12 +02:00
Lulu13022002 e9d300a828 Take in account waterlogged blocks for scaffolding (#9676) 2023-09-04 17:52:27 +02:00
Lulu13022002 d0bce54059 Add sniffer egg api (#9288) 2023-08-26 22:12:46 +02:00
Lulu13022002 a92fdba593 Allow custom damage for trident (#8132) 2023-08-22 08:20:38 +02:00
Lulu13022002 b6c058204f Fix endgateway teleportation offset (#9517) 2023-08-22 08:03:15 +02:00
Lulu13022002 6667ae5ce2 Prevent desync for poi and pistons (#9270) 2023-07-13 21:22:05 +02:00
Lulu13022002 493852bbd1 Fix ThrownEggHatchEvent#setHatching (#9448) 2023-07-05 09:46:12 +02:00
Lulu13022002andJake Potrebic 1dec9836ed Call missing BlockDispenseEvents (#8518)
* Call missing BlockDispenseEvent

* Avoid duplicate event

* Show a single item for event

* Move glowstone refill event

* rebased

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2023-07-03 01:12:07 +02:00
Lulu13022002 94fbc95d13 Avoid duplicate death event call for armorstands (#9223)
* Avoid duplicate death event call for armorstands

* restore vanilla behavior (emit the game event etc...)
2023-06-27 06:22:49 +02:00
Lulu13022002 0f4cd873af Fix sniffer removeExploredLocation and javadoc (#9311) 2023-06-16 15:33:25 +02:00
Lulu13022002 04928c58a4 Fix EntityDeathEvent cancellation (#9323) 2023-06-12 19:03:51 +02:00
Lulu13022002 8ee3c344d4 Add back the source uuid on exp orb for animals breeding (#9289) 2023-06-11 03:01:10 +02:00
Lulu13022002 8405a53d88 Add pitcher plant api (#9286) 2023-06-09 14:23:38 +02:00
Lulu13022002 c67f26d42a Fix collision between AABB and a dot (#8733) 2023-06-09 04:17:32 +02:00
Lulu13022002 ae7ed5a3b3 Avoid duplicate poi entries from the first section (#9235) 2023-06-09 04:14:30 +02:00
Lulu13022002 36d17c312f Re-implement the compost events (#9192) 2023-05-31 03:07:04 +02:00
Lulu13022002 d6e9b7fd8d Use the spigot config for mangrove propagule / torchflower growth (#8597) 2023-05-15 20:25:38 +02:00
Lulu13022002 be21be4029 Fix note block sound property on player heads (#9158) 2023-05-15 19:32:26 +02:00
Lulu13022002 b4656d3a02 Call EntityChangeBlockEvent for frogs egg (#9213) 2023-05-15 12:56:12 +02:00
Lulu13022002 2ba17103b9 Fix some NPE for EntityCompostItemEvent (#9169) 2023-05-03 13:07:51 +02:00