Commit Graph
100 Commits
Author SHA1 Message Date
OwenandGitHub 0caf75f839 Fix #12721 (#12725)
* Fix #12721

Track when knots are created and only fire the event then

* Use mutable boolean + check if actually spawned
2025-06-25 14:16:03 -04:00
OwenandGitHub d7510efc16 Fix #12722 (#12726)
Use our getRegistryAccess to null check against world
2025-06-24 15:26:37 -04:00
OwenandGitHub 5edcf6ddf6 Cleanup/command dispatching (#12713) 2025-06-21 21:44:07 -04:00
OwenandGitHub 71b0c76861 Adds support for vanilla negative explosions (#12705)
Fixes #10460
2025-06-21 00:54:53 -04:00
OwenandGitHub 839c6a1845 Fix #11169 (#12706)
This technically fixes the improperly updated patch, and also no longer checks canPickUpLoot.
2025-06-20 19:22:27 -04:00
OwenandGitHub 6a51c44ec2 Cleanup Primed TNT Fix (#12704)
This option should probably be removed as its a descendant of an option that allows "old tnt cannon" behavior before ~1.9 But this improves the fix so properly update the velocity/position rather than the questionable way it was doing it before.
2025-06-20 18:22:37 -04:00
OwenandGitHub 4b3f967e49 Improve Fix MC-44654 (#12703)
This more properly implement spigot's fix for teleportation area effect clouds, now however supporting many other entity types specified in this bug report.

Currently, this is not an issue for (all) hanging blocks since they have a fix identical to this inside of setPos. Note however the client does not nicely support moving these entities anyways.
2025-06-20 16:02:24 -04:00
6c3964d2f5 Properly save level data async (#12530)
Previously we added a parameter allowing for level data to be saved asynchronously which was then overriden by a vanilla parameter which does the opposite.

This reverts back to the previous behavior that we were doing before.

Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
2025-05-07 17:34:58 -04:00
OwenandGitHub 42a2a6c2b5 Supports the ability for commands to be registered internally (#12520) 2025-05-06 16:05:00 -04:00
OwenandGitHub ec421715ed Add missing spaces back (#12508) 2025-05-02 07:39:46 +02:00
OwenandGitHub fa5824e4c8 Add skipTripwireHookPlacementValidation (#12091)
This allows for the configuration of tripwire hook duping.
2025-02-10 23:04:38 +01:00
OwenandGitHub ea7b961926 Fix MapItem incorectly fetching water biomes on treasure maps (#11936) 2025-01-11 10:49:31 +01:00
55f3f280cb Reimplement ItemStack Obfuscation (#11817)
Reimplementation of the itemstack obfuscation config that
leverages the component patch map codec to drop
unwanted components on items or replaces them with
sanitized versions.

Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2025-01-09 18:58:18 +01:00
OwenandGitHub 188124bcc3 Fix totems negating incorrect item (#11776) 2024-12-22 23:58:01 -05:00
Owen1212055 2935905ced Small sculk cleanup
Don't check for empty items anymore in FishingHook.

Removes some diff + we handle it gracefully in add fresh entity
2024-12-19 20:44:24 -05:00
Owen1212055 360006bc7f Fix bouncy items
This reverts EAR diff to be how it is paper proper-- seems like alot of this got dropped.
2024-12-15 22:27:32 -05:00
Owen1212055 b21c0686c0 Fix broadcast sending to sender multiple times 2024-12-15 21:43:15 -05:00
Owen1212055 189781f2cf Fix entity collision 2024-12-15 21:16:40 -05:00
Owen1212055 59a1f78750 Fix sleeping 2024-12-15 20:52:03 -05:00
Owen1212055 2e14d98ebe Fix item dropping 2024-12-15 20:33:21 -05:00
Owen1212055 773f7aada7 net/minecraft/world/level/dimension/end 2024-12-14 21:43:26 -05:00
Owen1212055 b16f6f533a net/minecraft/world/level/block/a-r 2024-12-14 21:31:12 -05:00
Owen1212055 1dd7ab9203 net/minecraft/nbt 2024-12-14 17:35:55 -05:00
Owen1212055 f2f3b06179 remove already applied
net/minecraft/world/level/storage/loot
2024-12-14 17:29:33 -05:00
Owen1212055 d096e6baaf net/minecraft/world/entity/ai/behavior/ 2024-12-14 17:25:17 -05:00
Owen1212055 4707f46b25 net/minecraft/world/level/material 2024-12-14 16:50:01 -05:00
Owen1212055 973fe2a945 net/minecraft/world/entity/monster/creaking 2024-12-14 16:38:13 -05:00
Owen1212055 a0a4359af1 net/minecraft/stats/ 2024-12-14 16:29:32 -05:00
Owen1212055 97043e3e5b net/minecraft/world/level/block/piston/ 2024-12-14 16:24:09 -05:00
Owen1212055 5c36e5e6b5 net/minecraft/core/registries 2024-12-14 15:59:29 -05:00
Owen1212055 aa4dd1b840 net/minecraft/network/protocol/handshake/ 2024-12-14 15:55:25 -05:00
Owen1212055 93c74cf2f4 net/minecraft/network/ 2024-12-14 15:47:52 -05:00
Owen1212055 a9d7ae7213 Missing part of net/minecraft/world/level/dimension/end/ 2024-12-14 15:32:26 -05:00
Owen1212055 0aa15ea868 net/minecraft/world/level/chunk/ 2024-12-14 15:26:22 -05:00
Owen1212055 a3bd0b2bbb net/minecraft/world/level/chunk/ 2024-12-14 15:20:06 -05:00
Owen1212055 c31ab10475 Fixy 2024-12-14 14:43:19 -05:00
Owen1212055 ea5c599077 /net/minecraft/world/entity/monster 2024-12-14 14:39:44 -05:00
Owen1212055 c8d3ed4430 /net/minecraft/core/cauldron/CauldronInteraction fix 2024-12-14 13:23:24 -05:00
Owen1212055 fa792cf719 /net/minecraft/core/cauldron/CauldronInteraction 2024-12-14 13:21:23 -05:00
Owen1212055 822b963d3f net/minecraft/network/protocol/game/ 2024-12-14 12:57:50 -05:00
Owen1212055 016503a85f net/minecraft/world/entity/animal/goat/ 2024-12-14 12:28:50 -05:00
Owen1212055 71cac092ea net/minecraft/world/inventory fixes 2024-12-14 12:14:44 -05:00
Owen1212055 64e61681f4 net/minecraft/world/inventory 2024-12-14 11:56:00 -05:00
Owen1212055 a68b56a864 advancement stuff 2024-12-13 11:39:43 -05:00
Owen1212055 8324be321a brig stuff 2024-12-13 11:02:13 -05:00
Owen1212055 ebc080b944 Implement assetid 2024-12-04 00:33:47 -05:00
Owen1212055 0eefdfb97a Implement new CustomModelData 2024-12-04 00:26:31 -05:00
76403d796b Item DataComponent API (#10845)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2024-11-18 15:09:44 -05:00
Owen1212055 303d82e48c Use new ClientboundPlayerRotationPacket for setting player rotation 2024-10-28 12:14:00 -04:00
Owen1212055 a11f1c8dbf Patch 2024-10-24 10:02:45 -04:00
Owen1212055 26e2a9cbd2 Patch 2024-10-24 09:53:28 -04:00
Owen1212055 3f5491e0b7 Patch 2024-10-24 09:25:36 -04:00
Owen1212055 e486dd7445 Patch 2024-10-23 10:08:40 -04:00
Owen1212055 4ed93c52b4 Patch 2024-10-23 10:04:01 -04:00
Owen1212055 3342d91bd6 Patches 2024-10-23 09:54:09 -04:00
Owen1212055 c4a1f15d70 Restore functionality to sand dupe setting 2024-06-15 22:04:02 -04:00
Owen1212055 0410d79c1d Owen fixing stuff!!! 2024-06-15 21:43:06 -04:00
Owen1212055 cde6cb4f28 Properly pass requirement on namespaced redirects (#10701) 2024-05-12 02:46:42 -04:00
567cc3f4b3 Brigadier Command Support (#8235)
Adds the ability for plugins to register their own brigadier commands 

---------

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2024-05-11 16:30:30 -04:00
Owen1212055 30b4dedabb DataComponent API
Exposes the data component logic used by vanilla ItemStack to API
consumers as a version-specific API.
The types and methods introduced by this patch do not follow the general
API deprecation contracts and will be adapted to each new minecraft
release without backwards compatibility measures.
2024-04-28 19:53:06 -04:00
Owen1212055 fca0167880 Drop old decompile fix 2024-04-26 08:39:10 -04:00
Owen1212055 09edc7e437 item meta patch work 2024-04-25 09:22:52 -04:00
Owen1212055 8fa2c4d4fd pass more stuff 2024-04-25 09:01:54 -04:00
Owen1212055 a47a33b837 Fix properly resend patches 2024-04-25 08:42:47 -04:00
Owen1212055 1cc4c39836 Patches!!!!!!! (we are done) 2024-04-25 08:36:48 -04:00
Owen1212055 308e992c47 Patches!!!!!!! 2024-04-24 18:36:49 -04:00
Owen1212055 b866d785c8 Patches!!!!!!! 2024-04-24 10:30:32 -04:00
Owen1212055 a68fb9030a Patches!!!!!!! 2024-04-24 10:29:12 -04:00
Owen1212055 5a30d10b36 Patches! 2024-04-24 09:46:45 -04:00
Owen1212055 babd22019c Patches! 2024-04-24 08:11:27 -04:00
Owen1212055 717c16dc69 Patches! 2024-04-23 18:25:14 -07:00
Owen1212055 c844ac9d01 Update upstream 2024-04-23 19:31:55 -04:00
Owen1212055 97cf432687 update 2024-04-23 19:30:03 -04:00
Owen1212055 14b0751f02 Deprecate ItemStack#setType & add ItemStack#withType (#10290) 2024-04-12 17:16:22 -04:00
Owen1212055 7415dcf70e Allow enabling sand duping (#10191)
Because this exploit has been widely known for years and has not been fixed by Mojang, we decided that it was worth allowing people to toggle it on/off due to how easy it is to make it configurable.

It should be noted that this decision does not promise all future exploits will be configurable.
2024-03-03 17:05:34 -05:00
Owen1212055 73b42e843e Add mob goal generator (#9980) 2024-01-15 14:36:10 -05:00
Owen1212055 9940519717 Fix experience & improvements to block events (#8067)
This is a lot but basically adds a method to disable the dropping of experience and drops experience by default.
This way things that require XP to be dropped manually (via modification), they can drop XP themselves when needed but without touching anywhere else that may drop xp.

It should be noted this causes breakNaturally() to now drop experience.
2024-01-04 15:18:59 -05:00
Owen1212055andBjarne Koll 524451e16c Keep fully frozen entities fully activated (#10103)
* Keep fully frozen entities fully activated

* Rebase and switch to isFreezing

---------

Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2024-01-02 14:08:34 -05:00
Owen1212055 fab261ae0b Catch async usage of playsound (#10021) 2023-12-26 15:00:21 -05:00
Owen1212055 a52612213b Catch setEnabled to ensure classloader is properly unloaded (#10020) 2023-12-10 20:02:26 -05:00
Owen1212055 03cf27d8f0 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:
cdfe62e4 Update to Minecraft 1.20.4

CraftBukkit Changes:
51eea725f Update to Minecraft 1.20.4

Spigot Changes:
ce0f71e4 Update to Minecraft 1.20.4
2023-12-07 15:14:35 -05:00
Owen1212055 1e5f347169 Clean up username validation logic 2023-12-06 20:26:58 -05:00
Owen1212055 bd76143a5a Hotfix DefaultDispenseItemBehavior#spawnItem 2023-12-06 19:45:28 -05:00
Owen1212055 ab5d5fb554 Fix some missing diffs 2023-12-06 15:11:00 -05:00
Owen1212055 8e37c573ec Remove some patches 2023-12-06 15:09:14 -05:00
Owen1212055 6f010858de Patches!!! MORE MORE MORE MOOOOORE 2023-12-06 11:34:54 -05:00
Owen1212055 0087658702 Patches!!! MORE 2023-12-06 11:21:56 -05:00
Owen1212055 2633e8f90d Patches!!! (2) 2023-12-06 11:00:26 -05:00
Owen1212055 66719a05d3 Patches!!! 2023-12-06 10:17:00 -05:00
Owen1212055 1fa2b7d2f5 Dont resend blocks on interactions (#9413)
In general, the client now has an acknowledgment system that will cause block changes made by the client to be reverted correctly.

Essentially:

The client enters a "prediction" stage, where any block changes made will have its old blockstate captured (this is referred to as "server state").
If you update blocks during this stage, the client will update this captured server state as long as they're still currently predicting.
After prediction is done (via an ack packet) all captured blockstates are reverted to their captured server state.
This means that if the server actually updated a block and send a block update packet, it's correctly set, while if a block wasn't updated on the server but WAS updated on the client (server state wasn't updated), that change will be reverted.

It should be noted that this system does not yet support block entities, so those still need to be resynced when needed.

I discovered this when noticing that blocks broken outside of the player's valid interaction distance are still properly reverted, even though the server doesn't send any block updates, only an ack packet.
2023-12-02 22:41:35 -05:00
Owen1212055 00c5568532 Fix Mushroom cow stew api (#9934) 2023-12-02 20:54:58 -05:00
Owen1212055 5cca94a05e Add Entity Movement Direction API (#7085)
This allows you to get player movement when riding vehicles, etc.
2023-11-11 16:04:34 -05:00
Owen1212055 1b5c9db2e2 Remove Spigot Bug Fix for MC-109346 2023-09-23 01:51:40 -04:00
Owen1212055 9a66eb3eaa Support Paper ip address config + add missing logs 2023-09-23 01:50:13 -04:00
Owen1212055 a0f1649d04 Remove isRemoved skip on .discard() (#9520) 2023-07-24 05:04:40 -04:00
Owen1212055 e1adb82073 Remove sign ticking (#9478)
Minecraft now ticks signs in order to validate the playerWhoMayEdit field. This is a horrible idea, as this means that even waxed signs are ticked for essentially no reason. This moves the logic lazily onto the getter.
2023-07-22 17:00:50 -04:00
Owen1212055 eb5257d3a5 Suppress Item Meta Validation Checks (#9331)
Stops item meta from aggressively throwing exceptions.
2023-07-13 16:59:49 -04:00
Owen1212055 16f29bd54a Fix missing item interaction cancelling case (#9427)
Properly cancels brushes now
2023-07-13 15:48:46 -04:00
Owen1212055 ec0be3fbf2 Fix cycle on paper plugin toString (#9392) 2023-06-24 17:37:38 -04:00
Owen1212055 08197c3a58 Fix interact event call override (#9387) 2023-06-23 12:03:43 -04:00