Commit graph

6115 commits

Author SHA1 Message Date
Nassim Jahnke
4a11f85ac5 [ci skip] Update contributing guidelines (#6497)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-08-31 02:18:45 +02:00
HexedHero
2a4afe1f6b Add MaterialTags for raw ores and raw ore blocks (#6516) 2021-08-30 15:55:11 +01:00
Jason Penilla
bd48009917 Undeprecate Enchantment#isCursed (#6524) 2021-08-30 09:49:28 -05:00
Jason Penilla
7fda985a9c [ci skip] Cleanup Timings v2 diff (#6523) 2021-08-30 02:02:24 -05:00
Jason Penilla
0294b31e13 Log error for invalid entity-per-chunk-save-limit configs (#6522) 2021-08-29 23:19:43 -05:00
Maddy Miller
e0125b21b7 Fix poor action helpers API name (#6518) 2021-08-29 17:20:14 +10:00
Maddy Miller
6f94f00f7b Add helpers for left/right hand to Action (#6517)
* Add helpers for left/right hand to Action

* Diff starts here technically
2021-08-29 16:29:36 +10:00
Nassim Jahnke
dc84fb336e Move ProtoWorld methods to LimitedRegion (#6486) 2021-08-28 15:43:26 +02:00
Nassim Jahnke
7080d73f1b Updated Upstream (Bukkit/CraftBukkit) (#6513)
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:
ea7b3a0d #654: Clarify conditions where a bed can explode

CraftBukkit Changes:
e167f280 SPIGOT-6726: NPE when calling getBossBar() on plugin spawned EnderDragon
2021-08-28 14:45:14 +02:00
Jason Penilla
aa0de8d4b5 Fix and optimize legacy world conversion (#6473)
CraftBukkit breaks legacy world conversion in three ways:
- Writes userdata to the path of the userdata folder rather than to
  the correct file inside the aforementioned folder. This causes the
  userdata folder to fail to be created as a file already exists at
  its path.
- Makes changes to how multiworld works, without modifying
  McRegionUpgrader to be aware of these changes.
- Calls methods on Bukkit before the server is initialized.

This patch fixes all of these issues, and also threads the
McRegionUpgrader to improve performance.
2021-08-28 00:07:12 -05:00
Spottedleaf
6522a6eed1 Ensure priority updates are determined by current level, not deferred level (#6507)
* Ensure priority updates are determined by current level, not deferred level

Deferral could cause an infinite loop to occur.

Also, re-add the light engine priority logic.

* Rebase

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-08-27 19:20:31 -07:00
Owen1212055
0f34801f3d Add Missing Entity API: Cat (#5744) 2021-08-27 14:16:41 -04:00
Nassim Jahnke
cc4e273b07 Updated Upstream (CraftBukkit) (#6504)
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:
5be41fb8 SPIGOT-6720: Fix bed explosion checks
09b99daf SPIGOT-6722: Close entity manager when unloading world
3a9561bf SPIGOT-6686: Changes in MaximumRepairCost for Anvil Rename cause inconsistency
2021-08-27 11:51:18 +02:00
Jake Potrebic
7247c2b0ab Remove unneeded @ throws from team javadocs (#6491) 2021-08-26 12:56:31 -07:00
Jake Potrebic
17600721ea [ci skip] Remove this file that got created somehow (#6489) 2021-08-26 09:49:32 -07:00
Jason Penilla
b0d8230b5a [ci skip] Cleanup diff in Async command map building (#6492) 2021-08-26 11:41:22 -05:00
Nassim Jahnke
5ce32344db Sanitize ResourceLocation error logging (#6495) 2021-08-26 12:25:23 +02:00
Spottedleaf
882fe0543a Log when the async catcher is tripped (#6493)
The chunk system can swallow the exception given it's all
built with completablefuture, so ensure it is at least printed.

Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2021-08-25 20:35:35 -07:00
Spottedleaf
4355a3ac96 Readd chunk priority patch, including many chunk system fixes from tuinity (#6488) 2021-08-25 19:16:27 -07:00
Jason Penilla
7a51a16318 Vanilla command permission fixes (fixes #6085) (#6490)
Fixes permission checks for vanilla commands which don't have a
requirement, as well as for namespaced vanilla commands.
2021-08-25 17:20:24 -05:00
Jason Penilla
3c13186e4e Use configured no permission message in PaperCommand (#6484) 2021-08-25 15:34:15 -05:00
Nassim Jahnke
502755d55a Updated Upstream (Bukkit/CraftBukkit/Spigot) (#6457)
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:
c9a46ebf #653: Add World#spawn with randomizeData parameter
e49c2e3a Damageable should extend ItemMeta
01ff04f4 SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
ca5b4b1a SPIGOT-6697: Deprecate generateTree with BlockChangeDelegate as it does not handle tiles

CraftBukkit Changes:
7c8bbcbe SPIGOT-6716: Preserve the order of stored enchantments of enchanted books.
18027d02 #914: Add World#spawn with randomizeData parameter
3cad0316 SPIGOT-6714: Don't fire PlayerBucketEvent when empty
8c6d60cf Fix server crash with BlockPopulator when entities are at a negative chunk border
4f6bcc84 SPIGOT-5880, SPIGOT-5567: New ChunkGenerator API
78d5b35b SPIGOT-6697: Restore generateTree with BlockChangeDelegate behaviour
15792f0d Rebuild patch
c949675e SPIGOT-6713: Cancelling EntityTransformEvent Causes Deceased Slimes To Not Despawn
a955f15c Fix issues with new ChunkGenerator API
a0a37f41 SPIGOT-6630: Replacing an enchantment on an item creates a conflict error

Spigot Changes:
b166a49b Rebuild patches
3c1fc60a SPIGOT-6693: Composters only take in one item at custom hopper speeds
2021-08-25 09:59:26 +02:00
Jake Potrebic
f53cb1b3fe Add BlockBreakBlockEvent (#4989) 2021-08-24 18:42:23 -07:00
Jason Penilla
dd35ae9fec Squash "Clear SyncLoadInfo" into "Add debug for sync chunk loads" and add tab completion for the clear argument (#6483) 2021-08-24 18:45:40 -05:00
Jake Potrebic
73b4c45a4a [ci skip] clean up diff from 1.17 update (#6462) 2021-08-24 16:30:26 -07:00
Jason Penilla
b2800ba2a9 Add GLOW_SQUID and AXOLOTL to WATER_BASED Tag (#6481) 2021-08-24 17:52:10 -05:00
Pedro
6e492e1b1c Fix bed explosions in custom worlds (#6345) 2021-08-24 16:03:58 -04:00
Jake Potrebic
78d3eda3db Fix CB lib relocation (#6454) 2021-08-22 10:22:57 -07:00
Jake Potrebic
7b08aa27ab Add API to change EnderEye target without other nonsense (#6460) 2021-08-22 08:19:42 -07:00
Jake Potrebic
b9871610d1 Prevent NPE when removing enchantment with no ItemMeta (#6459) 2021-08-22 08:13:51 -07:00
Jake Potrebic
9169cf73cc Better docs for PlayerGameModeChangeEvent (#6461) 2021-08-22 08:10:33 -07:00
Maddy Miller
92d1ace250 Fix BlockPistonRetractEvent firing multiple times (#6467) 2021-08-22 23:54:55 +10:00
MiniDigger | Martin
aa487a3e4c Fix Mob Goal Leak (#6394) 2021-08-22 06:19:45 +02:00
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