Commit Graph

259 Commits

Author SHA1 Message Date
d58099f73b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6245)
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:
e7b0f8d6 #642: Add Crafting methods to API
9e58831e SPIGOT-6641: Use varargs in sendMessage
e409fe49 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
6997c726 SPIGOT-6661: Fix missing radius from GenericGameEvent
02d03f35 SPIGOT-6369: Add ItemStack to HangingPlaceEvent

CraftBukkit Changes:
0abf420c SPIGOT-6665: Shearing a Snowman does not drop a carved pumpkin
e8e3cbcc #893: Add Crafting methods to API
879acfee Fix missing varargs from previous commit
6572b9c3 SPIGOT-6641: Use varargs in sendMessage
9e06bb2a SPIGOT-6663: Chicken Jockeys chickens don't despawn
699f2d36 SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
8ffa54ba SPIGOT-6369: Add ItemStack to HangingPlaceEvent
c851639c SPIGOT-6645: Call EntityChangeBlockEvent before PlayerHarvestBlockEvent
8d244b0b SPIGOT-3725, SPIGOT-6638, MC-136917: Properly clear tile entities before replacing

Spigot Changes:
18c71bf4 Rebuild patches
2021-07-22 11:11:56 -07:00
e00202c42a Add ItemRarity test (#6247) 2021-07-21 21:48:24 -07:00
012cb6b015 Fix various mob drops being captured as death drops (#5675) 2021-07-21 19:58:24 -07:00
7eab7227cb Drop unneeded patch (#6240) 2021-07-21 11:18:54 -07:00
985e42705e Fix PaperTickList (#6241)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-07-21 19:12:24 +02:00
4ca56ff079 [ci skip] Put mappings util in a separate class to the stacktrace deobfuscator (#6230) 2021-07-19 19:22:18 -07:00
d3ba412286 Update email & name (DenWav)
Also I think I prefer my few tiny patches to be GPL.
2021-07-19 21:07:53 -05:00
zml
fc90f774bc Fix book title and author being improperly serialized as components (#6190)
They are kept as plain strings
Additional validation has been added to prevent invalid books from being
sent to the client.
2021-07-19 16:11:06 -07:00
ba64307307 Don't expose ASM in API (#6229)
ASM was not meant to exposed to API consumers in the first place, and for the duration of time it has been exposed, it has also been relocated.

Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-07-20 00:58:48 +02:00
e2ed8e9e86 Use mapped names for sensor and behavior timings/config (#6228) 2021-07-19 13:07:49 +02:00
3051846c73 Add rate options and timings for sensors and behaviors (#6027) 2021-07-19 10:47:33 +01:00
93634e1897 Don't apply cramming damage to players (#5903) 2021-07-19 10:31:03 +01:00
48f55186f1 Fix MerchantOffer BuyB Only AssertionError (#6206) 2021-07-19 05:16:53 -04:00
3626a2c62b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6222)
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:
eec4aab0 SPIGOT-6657: Add getPlayer to SheepDyeWoolEvent
205213c6 SPIGOT-6656: CauldronLevelChangeEvent is not fired correctly when dripstone fills the cauldron

CraftBukkit Changes:
b8c522d5 SPIGOT-6657: Add getPlayer to SheepDyeWoolEvent
f04a77dc SPIGOT-6656: CauldronLevelChangeEvent is not fired correctly when dripstone fills the cauldron
d1dbcebc SPIGOT-6653: Canceling snow bucket placement removes snow from bucket
4f34a67b #891: Fix scheduler task ID overflow and duplication issues

Spigot Changes:
d03d7f12 BUILDTOOLS-604: Rebuild patches
2021-07-18 00:41:53 -07:00
039952aa5e Revert "Fix PaperTickList" (#6216)
This commit reverts b166af8801
2021-07-17 21:57:00 +02:00
95ff18dca7 Fix block action handling (#6213) 2021-07-17 14:46:46 +02:00
6cb42c485b Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6209) 2021-07-16 18:48:27 -07:00
b166af8801 Fix PaperTickList (#6191) 2021-07-16 09:18:04 -07:00
186cf8842e Fix distanceSq check on block breaking (#6195) 2021-07-15 20:01:48 -07:00
6602dc655e Catch desynced block breaks (#6193) 2021-07-15 16:00:58 -07:00
83db66562f Use cause and cancel component in PlayerGameModeChanteEvent (#6192) 2021-07-15 14:44:59 -07:00
6ac1befa7b Fix Stonecutter #6180 issue (#6181) 2021-07-15 00:37:22 +09:00
22ac08c412 Fix incorrect message for outdated clients (#6160) 2021-07-13 21:49:38 -05:00
4ca03426b0 Expand resource pack API 2021-07-12 20:42:17 +01:00
713b774a85 [ci skip] Use commit timestamp instead of build time in manifest (#6161) 2021-07-11 23:24:48 -07:00
67e2594825 Fix command signs (#6139) 2021-07-11 11:06:49 -07:00
5ce2cd8c05 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6149)
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:
17c35d6e SPIGOT-6637: Revert "#636: Add FurnaceStartSmeltEvent"
4b27230b SPIGOT-6623: Missing API reasons for entity freezing
e1528c85 #636: Add FurnaceStartSmeltEvent

CraftBukkit Changes:
a6292cc3 SPIGOT-6637: Revert "#874: Add FurnaceStartSmeltEvent"
f4066854 SPIGOT-6579: DragonFireBall movement with setDirection jumps around a lot
9add952b SPIGOT-6623: Missing API reasons for entity freezing
2ea359f1 #874: Add FurnaceStartSmeltEvent
be8d625e SPIGOT-5560, SPIGOT-6574, SPIGOT-6632: Remove no longer needed tile entity fix

Spigot Changes:
eac3cd96 Rebuild patches
2021-07-11 00:01:29 -07:00
f359da1843 Fix NPE from using wrong ProtoChunk ctor (#6147) 2021-07-10 13:17:47 -07:00
dcdec7d59c Add config for mobs immune to default effects (#4835) 2021-07-09 21:49:49 -07:00
ee11682d4d fixed kick event leave message (#4766) 2021-07-09 12:03:28 -07:00
081a882f94 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:
b5d7883a SPIGOT-6634: Override needed method
99561c21 SPIGOT-6624: Explosions do not destroy blocks out of vanilla heights in custom dimensions
2021-07-09 16:08:42 +02:00
fc955009ca Add PlayerArmSwingEvent (#5353) 2021-07-09 06:56:30 -07:00
d81fd123ce Swapped out Vec3#distanceTo call with a Vec3#distanceToSqr call to remove calls to Math.sqrt 2021-07-07 20:58:54 +01:00
2c55fce23e Fix collisions during world generation (#6129) 2021-07-09 03:16:57 -07:00
5fe7fbd769 [ci skip] Add a test plugin (#6133) 2021-07-09 03:04:33 -07:00
43e9be4586 [ci skip] Remove extra newlines at EOF (#6127) 2021-07-08 18:40:24 -07:00
fc1a197de2 Ensure shulker bounding box is updated (#6010)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2021-07-09 03:18:32 +02:00
9d46f898d9 Fix cancelling EntityPickupItemEvent for villagers (#6091)
Remove's Billy's fix as upstream implemented a (broken) fix and then fixed their fix
2021-07-07 11:07:38 -07:00
2689c8d04f Drop no longer needed patch (#6115) 2021-07-07 19:18:05 +02:00
MD
aeb072c35d Route sign run_command click events through normal chat logic (#6109)
This patch changes sign command logic so that `run_command` click events are routed through the standard chat/command
logic used for inbound chat messages.

This fixes numerous issues related to sign click commands:
  - Signs with a `run_command` value of "/<plugin command>" would fail and show the "Unknown command" warning. This
    prevents usage of commands like `//wand` from WorldEdit in sign click events entirely and requires users to drop
    the leading slash from other plugins' commands. This patch now executes the plugin commands as would be expected,
    adding a leading slash if necessary.
  - Signs with a `run_command` value that doesn't match an existing command could fail silently. This patch causes
    these to *always* show "Unknown command" instead.
  - Plugins listening to `PlayerCommandPreprocessEvent` would not be able to intercept any command executions from
    sign click events. This patch allows plugins to intercept player commands when fired by a click event, in the same
    manner as commands executed by the player typing or clicking on a chat message.
  - Commands executed from signs would not be logged to the console. This patch fixes this.

This patch also prepends a leading slash if the `run_command` value lacks one, which matches vanilla behaviour (old
code would strip this slash away) while also ensuring `PlayerCommandPreprocessEvent#getMessage` remains consistent
with other command executions from chat (which always include the leading slash).
2021-07-07 16:12:58 +01:00
737c162fe2 [ci skip] Use Java toolchain for run tasks (#6108) 2021-07-07 06:18:02 -07:00
fa7bf2d3dc Add option for logging named entity deaths (#6107) 2021-07-07 15:15:17 +02:00
6a93c5c949 Add methods to ProtoWorld for working with BlockStates (#5929) 2021-07-07 03:23:16 -07:00
0b90741c3f Move log message for named entity deaths into correct location (#6105) 2021-07-07 03:04:34 -07:00
8a664e6bbc Deobfuscate stacktraces in sync load info (#6103) 2021-07-07 00:19:08 -07:00
7037cd401f Update to Minecraft 1.17.1 (#6097) 2021-07-07 08:52:40 +02:00
43f52d9c13 add Optimize Light Engine patch (#5863) 2021-07-05 21:30:39 -07:00
d61d127882 AbstractSkeleton should extend RangedEntity (#6087)
This includes Strays and matches the mojang RangedAttackMob
2021-07-05 22:48:08 -05:00
cad0a49123 Fix incorrect variable usage in per-player mob spawning patch (#6077) 2021-07-04 09:30:59 -07:00
08033a4fc0 Also deobfuscate secondary stacktraces in crash reports (#6078) 2021-07-04 03:20:11 -07:00