Nassim Jahnke
9253ea8b42
Fix respawn error due to null location
...
Closes #11017
2024-07-04 16:20:03 +02:00
Nassim Jahnke
37b7551e48
Readd more patches
2024-07-04 12:34:11 +02:00
Spottedleaf
7058cbc1aa
Execute chunk tasks mid-tick
...
If the server tick length is high, then the amount of time
available to process chunk tasks inbetween ticks is low. As a
result, chunk loading and generation may appear to slow down.
To ensure that chunk tasks are always processed, we add logic to
execute chunk tasks during tile entity tick, entity tick, chunk
random ticking, and scheduled block/fluid ticking. The mid-tick task
execution is timed so that it is not prioritised over the server
tick.
2024-07-03 19:22:00 -07:00
powercas_gamer
ce499f57d6
[ci skip] add adventure-key javadoc ( #11014 )
2024-07-02 22:52:04 +02:00
granny
ad222d4ad1
Fix summon_entity effect attempting to add incorrect entity ( #11004 )
2024-07-01 01:16:07 -07:00
Nassim Jahnke
f148164419
Add forRemoval to material data deprecations ( #10996 )
...
2018 is calling
2024-06-29 10:58:37 +02:00
Nassim Jahnke
d097e7cec1
Change item/xp merge and entity tracking range defaults ( #10986 )
2024-06-27 22:08:34 +02:00
Spottedleaf
17824b557c
Fix NPE when retrieving an entity with a null UUID
...
While the null UUID is almost certainly an error, the old
implementation did not NPE as it used a plain HashMap for lookup
by UUID, whereas we use a ConcurrentHashMap which will NPE on
null keys.
2024-06-23 18:58:31 -07:00
Jake Potrebic
eaaeed5041
bump reflection-rewriter to 0.0.3 ( #10969 )
2024-06-23 16:39:45 -07:00
Lulu13022002
acbaa46a96
Swap some nullable annotations ( #10960 )
2024-06-24 00:42:44 +02:00
Jake Potrebic
fed26cf9a8
Bump reflection-rewriter to 0.0.2 ( #10927 )
2024-06-23 15:29:50 -07:00
Jake Potrebic
e015c297db
Call EntityPortalEnterEvent on endgateways and make cancellable ( #10892 )
2024-06-23 15:01:12 -07:00
Lulu13022002
35acc5b73b
Fix speed for launched trident using api ( #10936 )
2024-06-23 23:37:20 +02:00
Lulu13022002
189504bc7f
Fix StackOverflowError for new dispenser interaction ( #10949 )
2024-06-23 22:24:17 +02:00
SoSeDiK
079105010e
Expose LivingEntity#canUseSlot ( #10930 )
2024-06-23 23:11:39 +03:00
Lulu13022002
2891c40adb
Add missing effect cause and deprecate PATROL_CAPTAIN cause ( #10958 )
2024-06-23 22:08:13 +02:00
scarfacered
ef2ce51913
Fix SoundEffects only to players diff ( #10966 )
...
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
2024-06-23 16:03:32 -04:00
Shane Freeder
69258a8c33
Do not crash when an exp orb attempts to mend an unrepairable item
2024-06-23 14:04:58 +01:00
Lulu13022002
8c6ba348c9
Fix wrong diff applying delta twice ( #10959 )
2024-06-22 20:11:34 +02:00
Pedro
f5e0f69e72
Fix PlayerShearBlockEvent drops ignored for Pumpkin ( #10956 )
2024-06-22 09:50:47 -04:00
Spottedleaf
89961bad94
Fix unload queue storing chunks in wrong sections
...
The unload queue stored the chunks in the same section as
the chunk coordinate, when it needed to apply the unload shift.
Additionally, change the default region shift to the ticket
propagator shift as there is no benefit to using a low region
shift since no regionizing is occuring. This makes the unload
queue shift 6, which should reduce the number of sections to deal
with while processing unloads.
2024-06-21 11:57:03 -07:00
Lulu13022002
31ddf26e18
Preserve velocity for fireball ( #10934 )
2024-06-21 20:06:31 +02:00
Lulu13022002
ffff490cc8
deprecate and update some entity tags ( #10932 )
2024-06-21 18:51:00 +02:00
Lulu13022002
58268601ac
Validate using_converts_to for food component ( #10931 )
2024-06-21 18:48:48 +02:00
Lulu13022002
22e64d8059
Fix NPE of AbstractArrow#getWeapon ( #10933 )
2024-06-21 18:48:29 +02:00
Lulu13022002
5c5a5fb93c
Fix base damage for trident ( #10948 )
2024-06-21 18:48:18 +02:00
Shane Freeder
28238907c1
Revert "Fixes exception log messages getting dropped during bootstrap ( #10935 )" ( Closes #10945 )
...
This reverts commit 05dd6c2bec
.
2024-06-21 10:05:27 +01:00
Shane Freeder
71f3228b5c
Fix diff in sprint interruption option ( Closes #10939 )
2024-06-21 01:21:23 +01:00
Jake Potrebic
05dd6c2bec
Fixes exception log messages getting dropped during bootstrap ( #10935 )
2024-06-20 11:26:07 -07:00
Lulu13022002
26fd1c1b56
Validate speed for tool component rule ( #10923 )
2024-06-20 18:32:32 +02:00
Lulu13022002
461f02dce2
Experimental annotation changes ( #10914 )
...
* Experimental annotation changes
* wind charge damage type is not experimental anymore
2024-06-20 18:03:09 +02:00
Lulu13022002
a362e724b2
Fix jukebox playable component not being applied on item meta ( #10922 )
2024-06-20 17:57:56 +02:00
Spottedleaf
72883ff600
Re-add chunk system debug commands
...
Re-adds the 'chunkinfo', 'holderinfo' and 'debug chunks' commands.
Additionally, this re-adds chunk debug dumping during watchdog
long timeouts.
2024-06-19 12:11:21 -07:00
Spottedleaf
287baeab18
Add debug for chunk system unload crash
...
Somehow, a chunkholder is present in the unload queue after
it has been unloaded. It is likely that this is a result of
adding the chunk holder to the unload queue while it is
unloading. However, that should not be possible.
To find out where it is being added to the unload queue, track
the last stacktrace which adds to the unload queue and check
on chunk holder remove if the holder is present in the unload queue
and log the stacktrace.
2024-06-19 10:55:04 -07:00
Spottedleaf
e985ffabb2
Fix ChunkHolder#getFullChunkNow returning non-null when it should not
...
In the new chunk system, the chunk is only at FULL when either
the FULL callbacks have been invoked or during the FULL callbacks.
2024-06-19 10:42:48 -07:00
Spottedleaf
3c4ca08b26
Cleanup MCUtils patch for chunk system
...
Remove utilities that are unused, as well as replacing
the full chunk map with a concurrentutil implementation.
Additionally, fix the addition/removal of chunks to/from the
full chunk map so that getChunkIfLoaded correctly returns a
non-null chunk when calling the load or unload events.
2024-06-19 10:29:03 -07:00
Spottedleaf
45ae3a360b
Copy missing diff from old chunk system patch
...
Fixes:
- EntitiesLoadEvent/EntitiesUnloadEvent not firing
- Chunks not saving properly in a lot of cases
2024-06-19 09:27:15 -07:00
Spottedleaf
311fbf4a30
Re-add fixlight command
2024-06-19 08:37:12 -07:00
Jason Penilla
2475b329fa
Add ticket for chunk load in isChunkGenerated
2024-06-18 21:15:20 -07:00
Jason Penilla
15c0e90d6e
Execute chunk tasks while waiting for chunk load in isChunkGenerated
...
this shouldn't be needed as we are requesting EMPTY status, however there is a deeper issue that we will just work around for now
fixes #10916
2024-06-18 21:04:13 -07:00
Jason Penilla
6ae5176a52
Add missing null check to getFullChunkIfLoaded
...
fixes #10915
2024-06-18 18:27:50 -07:00
Jason Penilla
acc349cf7d
Remove getUnloadingChunkHolder check
...
It always returns null now. So it could NPE and is not useful.
2024-06-18 12:51:40 -07:00
Jason Penilla
aaf37cb47d
Fix CraftWorld#isChunkGenerated
...
The upstream implementation is returning true for non-full chunks.
This fix is not ideal since the new chunk system doesn't have a region file/chunk status patch. May want to be revisited before a non-experimental release.
2024-06-18 12:44:07 -07:00
Nassim Jahnke
97bd52887e
Use ItemStack.empty() when air is passed into constructor
2024-06-18 15:31:30 +02:00
Bjarne Koll
8d4decb590
Correct duplicate attribute check ( #10901 )
...
Brackets got lost during the update, leading to an incorrect
precondition call.
2024-06-18 11:11:14 +02:00
Jake Potrebic
59da9d1a80
Fix NPE for Jukebox#setRecord
...
Fallback to the global registry if no level exists
Fixes #10899
2024-06-17 17:42:48 -07:00
Emilia Kond
ffa51cc8b0
[ci skip] Fix javadoc mistake in EnchantmentRegistryEntry.Builder ( #10898 )
...
The javadoc for EnchantmentRegistryEntry.Builder accidentally refers to
GameEventRegistryEntry, which is a different buildable registry entry.
2024-06-18 00:54:49 +03:00
willkroboth
7887bddbae
Fix hasFiredAsync
parameter when AsyncPlayerSendCommandsEvent
is called ( #10896 )
2024-06-17 21:16:55 +02:00
Jake Potrebic
70f3730d25
Delegate ItemStack ( #10852 )
2024-06-17 12:12:42 -07:00
Nassim Jahnke
27a9efdca5
Make chunk system loggers calm down a bit
2024-06-17 13:43:21 +02:00