Commit Graph

6282 Commits

Author SHA1 Message Date
Octavia Togami
1291aa829a Replace ThreadLocal with ConcurrentHashMap in CommandSourceStack (#6325)
This object is created so often that it likely creates problems with the
ThreadLocalMap because the weak references can't be cleaned up fast
enough. This has manifest as lag seemingly caused by WorldEdit:
https://github.com/EngineHub/WorldEdit/issues/1668
2021-08-21 20:45:40 -07:00
Mariell Hoversholm
889718222e Add timeout & interval to sysout catcher (#6383) 2021-08-21 17:01:42 +02:00
Bjarne Koll
b868339208 Add deepslate as xray engine 2 replacement default (#6362)
Fixes: #6350
2021-08-21 14:34:58 +00:00
Noah van der Aa
7e5a053742 Respect despawn rate in merge check (#6428) 2021-08-21 16:32:07 +02:00
Jake Potrebic
b3c84b4e7d Add API to send game events (#6444) 2021-08-21 07:26:42 -07:00
petersv5
ebb3c9b96a Fix entities glitching through blocks pushed by pistons (#6308)
Fixes #5189
2021-08-21 16:15:29 +02:00
HexedHero
849bc22bdf Add note about EntityMoveEvent not firing for players (#6406) 2021-08-21 14:53:01 +01:00
Jason Penilla
5fb95dd824 Set AsyncAppender dispatch thread to be a daemon thread (#6424) 2021-08-18 13:47:29 -05:00
Jason Penilla
7c87437f70 [ci skip] Bump paperweight to 1.1.11, update Gradle wrapper script (#6421) 2021-08-18 13:34:52 -05:00
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