Commit graph

6073 commits

Author SHA1 Message Date
Jason Penilla
6216cdc4c2 Setup dev bundle publishing (#6163) 2021-08-17 17:11:04 -05:00
Shane Freeder
972fbb74c9 Do not fire PlayerBucketFillEvent when no fluid (Fixes #4611) 2021-08-17 15:43:01 +01:00
Jake Potrebic
5da877975c Fix yaw on player spawn (#6409) 2021-08-16 14:46:25 -07:00
Noah van der Aa
f9143cf9ec Don't fire entitymovevent for players. (#6402) 2021-08-15 19:37:42 +02:00
Jake Potrebic
f217b15bbf Fix possible divide by 0 error with cursor updates (#6398) 2021-08-14 10:44:31 -07:00
Shane Freeder
746d5cb8fb Revert "Revert "Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)""
This reverts commit d2f7432e32.
2021-08-14 15:24:53 +01:00
Shane Freeder
d2f7432e32 Revert "Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)"
This reverts commit 701cceb170.
2021-08-14 15:22:21 +01:00
Shane Freeder
701cceb170 Remove "Implement-Chunk-Priority-Urgency-System-for-Chunks" (Fixes #5980)
Mojang made some changes to priorities in 1.17 and it seems that these changes
conflict with the changes made in this patch, which in some cases appears to
cause excessive rescheduling of tasks.

This, however, is not confirmed as such but seems to be the behavior that we're
seeing to cause this issue, if mojang has adopted the changes we suggested,
then a good chunk of this patch may be unneeded, but, this needs a much better
look than I'm currently able to do
2021-08-14 14:55:55 +01:00
Jason Penilla
92222b3c9d [ci skip] Add some helper methods to the ObfHelper util class (#6374) 2021-08-14 03:06:17 -07:00
Jason Penilla
f5dd603274 [ci skip] Drop "Fix CME on adding a passenger in CreatureSpawnEvent" (#6384)
This is no longer needed as Entity#passengers is an ImmutableList as of 1.17
2021-08-14 03:01:07 -07:00
Jake Potrebic
b230147e18 Clear bucket NBT after dispense (#6391) 2021-08-14 02:51:03 -07:00
Jake Potrebic
112c19b45e Implement Translatable in appropriate places (#6248) 2021-08-13 21:11:12 -07:00
Jason Penilla
18178d7c9a Add config migration for named entity death logging option (#6390) 2021-08-13 13:24:25 -07:00
Warrior
7b05942bcc Configurable item frame map cursor interval (#6385) 2021-08-13 21:14:44 +02:00
Jake Potrebic
85195961ea Make EntityUnleashEvent cancellable (#4993) 2021-08-13 11:15:43 -07:00
Jake Potrebic
037884fc65 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6379)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-08-13 10:08:34 -07:00
Jason Penilla
6b4f50a1cb Fix block drops position losing precision millions of blocks out (#6387) 2021-08-12 21:46:55 -07:00
Andrew Steinborn
6a9023862c Optimize indirect passenger iteration (#6366) 2021-08-12 22:55:41 +00:00
Jake Potrebic
fd585fd5da Add warning to getOfflinePlayers (#6365) 2021-08-12 15:38:25 -07:00
Jason Penilla
1093b2f26a Use AsyncAppender instead of AsyncLoggerContextSelector to keep loggging IO off main thread (#6381) 2021-08-12 10:55:20 -07:00
Shane Freeder
0850e18436 Expose EntityType#getTranslationKey 2021-08-11 06:12:57 +00:00
Mariell Hoversholm
cdb63d6ad0 refactor: do not import List; use FQN
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 13:57:36 +02:00
Mariell Hoversholm
7df3240f80 Updated Upstream (Bukkit/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

Bukkit Changes:
e0598aa2 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter

CraftBukkit Changes:
2cdc6b1e4 SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter
2021-08-05 21:53:50 +02:00
Jake Potrebic
ecbd399610 Added EntityItemDamageEvent (#4928) 2021-08-09 22:04:44 -07:00
Jason Penilla
c3a36117a8 Config option for Piglins guarding chests (#4829) 2021-08-09 19:13:58 -07:00
Jason Penilla
5ba8143d59 Add reobf mappings patch for MinecraftServer#getLootTables (#6368) 2021-08-09 17:05:12 -07:00
Andrew Steinborn
3a2986e746 Optimize entity tracker passenger checks (#6361)
When a ServerEntity instance is first constructed, it uses a pre-Java 9 empty collection,
but passengers use Guava ImmutableList. When comparing the two collections via Object#equals
we miss out on an opportunity to reduce the check to little more than a reference equality
check (which is very fast).
2021-08-09 18:36:45 +00:00
Bjarne Koll
68db0c9853 Support complex components in written book builder (#6337)
The previously existing toBuilder method defined on the CraftMetaBook
would, no matter if called on a writable or written book, return a
builder targetting a writable book, in which complex components, such as
hover or click text are not allowed.

The builer hence serializes the page components using LEGACY_UXRC to
ensure only colour may be passed. While this works as intented for
writable books, the builder fails to fully support the complex
components that may be used in a written book.

This commit implemements a child class of the CraftMetaBookBuilder, the
CraftMetaBookSignedBuilder, which builds to a CraftMetaBookSigned
instance and hence serializes the pages to json.
This builder instance is automatically supplied when calling toBuilder
on a CraftMetaBookSigned instance.

Resolves: #6296
2021-08-09 00:57:20 +02:00
Jake Potrebic
835479f878 clone itemstack to return remaining stack (#6353) 2021-08-06 23:55:16 -07:00
Jake Potrebic
77aea984df Add missing DamageCause for EntityDamageByBlockEvent (#6352) 2021-08-06 23:03:50 -07:00
Jake Potrebic
6b7f31b6ea Make hoppers respect inventory max stack size (#4838) 2021-08-06 17:35:42 -07:00
Kacper Płażewski
b7d13d69f9 [ci skip] add vs code files to .gitignore (#5663) 2021-08-07 02:27:45 +02:00
Jake Potrebic
c5487cc115 call EntityDamageByBlockEvent for campfires (#6244) 2021-08-06 17:20:39 -07:00
Jake Potrebic
299284be1d Add PlayerSetSpawnEvent (#5690) 2021-08-06 13:37:38 -07:00
thamid-gamer
973d5bf77b Fix Incorrectly Typed Goals (#6200) 2021-08-06 13:05:53 -04:00
Noah van der Aa
5aeb8c87e7 Fix ITEM_DROPPED stat not working properly (#6331) 2021-08-06 18:46:25 +02:00
Mariell Hoversholm
7167583c8a fix: promote slf4j-api to api scope (#6343)
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-06 18:01:18 +02:00
Shane Freeder
c45970a2c1 Updated Upstream (Bukkit/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

Bukkit Changes:
75a0ee4f SPIGOT-6691: Material.LAVA_CAULDRON is not Levelled

CraftBukkit Changes:
e1c96e50 SPIGOT-6682: Blocking with shield not reset after die
97f629b6 SPIGOT-6220: Structures in the world with custom generator not work
85379258 Increase outdated build delay
f7f8dce4 SPIGOT-6552: Some inventory types reset cursor on switch
2021-08-04 16:26:56 +01:00
Prof-Bloodstone
5d201168ef Fix writing server.properties with wrong encoding (#6322)
Fixes #6321
2021-08-04 09:48:15 +02:00
Shane Freeder
06a831d477 Fix SysoutCatcher when plugins log before initialisation (Fixes #6323) 2021-08-04 04:04:12 +01:00
Mariell Hoversholm
9ff41ed426 fix: boats' bounding boxes must be deflated, not inflated (#6314)
Fixes GH-6312.

Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
2021-08-03 12:13:43 +02:00
Emilia Dreamer
e51f909450 Fix incorrect colors in ConsoleCommandSender messages with TranslatableComponents (#6287) 2021-08-03 10:48:34 +03:00
Prof-Bloodstone
cdd278225c Allow skipping writing of comments to server.properties (#6251)
Makes less git noise, as it won't update the date every single time

Use -DPaper.skipServerPropertiesComments=true flag to disable writing it
2021-08-03 09:35:02 +02:00
Noah van der Aa
f8261096c8 Prevent AFK kick while watching end credits (#6239). (#6265) 2021-08-02 10:43:56 +02:00
Hannes Greule
d891837b28 Rewrite LogEvents to contain information about the source jar of stacktrace elements (#6142) 2021-08-02 10:32:53 +02:00
Nassim Jahnke
243cfdf6b5 Don't not shuffle visible chunks (#6283) 2021-08-02 10:00:31 +02:00
Underscore11
007c5e34af Allow plugins to use Log4J to log (#6288) 2021-08-02 00:57:31 -07:00
ChristopheG
73f9a698de Add force getter to ParticleBuilder (#6300) 2021-08-02 09:51:55 +02:00
Underscore11
fbc4b4ca6d Add System.out.println catcher (#6278) 2021-08-02 00:07:48 -07:00
Shane Freeder
b3f290d877 Fix some inconsistency issues with empty map items (#6304) 2021-08-01 16:55:25 +01:00