Commit graph

9238 commits

Author SHA1 Message Date
Nassim Jahnke
f84d99ab82 Set updatingMinecraft to false 2024-10-31 18:07:14 +01:00
Bjarne Koll
c18eaf9bee Only expose velocity relative tp flags to API (#11532)
Since 1.21.2, vanilla split relative teleportation flags into position
and delta/velocity flags into separate enum entries.
This highlighted a design flaw in the paper api addition for teleport
flags, which just simply mirrored internals while also only being able
to apply the delta/velocity part of a flag, given the teleport target is
always absolute in the API.

This patch proposes to simply no longer expose the non-velocity related
flags to the API, instead marking the entire Relative enum as being
purely velocity related, as non-velocity related flags are not useful to
callers. This was done over simply exposing all internal flags, as
another vanilla change to the internal enum would result in the same
breakage.

The newly proposed API *only* promises that the passed flags prevent the
loss of velocity in the specific axis/context, which should be
independent enough of vanillas specific implementation of this feature.
2024-10-31 17:25:52 +01:00
Lulu13022002
d9fcd64770 get previous redstone level from the right state for experimental wires 2024-10-31 16:48:37 +01:00
Bjarne Koll
d1ca62a9d0 Correctly cancel consumption of consumable
See: #11534
2024-10-31 12:44:02 +01:00
Jason Penilla
ec53bd41e7 Allow using old ender pearl behavior & apply ender pearl exploit patch (#11524)
When enabled, ender pearls will not load chunks and will save to the world instead of the player.

Also changes the exploit config to be default false, as it only makes sense when legacy behavior is enabled.
2024-10-30 10:09:05 -07:00
Noah van der Aa
bafaa407e4 Add Friction API to minecarts 2024-10-30 17:31:33 +01:00
Lulu13022002
5e3ea5c8f9 don't resend effects when PlayerItemConsumeEvent is cancelled 2024-10-30 17:07:49 +01:00
Lulu13022002
f88986a2c2 fix "is_freezing" damage type tag 2024-10-30 14:55:46 +01:00
Nassim Jahnke
46b5013fc3 Use target pitch in teleport (generally the same thing) 2024-10-30 14:31:03 +01:00
Nassim Jahnke
7dc7d6ef96 Fix item gravity on inactive items, remove dumb active skipping 2024-10-30 14:06:43 +01:00
Nassim Jahnke
666560fcdd Fix portal exit resulting in bad teleport transition 2024-10-29 22:35:10 +01:00
Jason Penilla
6455fa4a8b Avoid issues with certain tasks not processing during sleep (#11526) 2024-10-29 12:46:33 -07:00
Lulu13022002
e50219c8fd cleanup bugfix patch 2024-10-29 16:54:40 +01:00
Lulu13022002
25b6464c5e remove some leftovers 2024-10-29 15:33:42 +01:00
Jason Penilla
32675c228d Update Gradle wrapper to 8.10.2 2024-10-28 10:17:48 -07:00
Owen1212055
303d82e48c Use new ClientboundPlayerRotationPacket for setting player rotation 2024-10-28 12:14:00 -04:00
granny
5364f9e7a0 Remove leftover missed timings calls (#11527)
* remove leftover timings calls

* remove unused imports
2024-10-28 00:03:55 -07:00
Jason Penilla
c72370d2c0 Use declaration order for state holder property iteration
Mostly an aesthetic change for serialization, should not have any impact on performance or correctness.
2024-10-27 18:29:34 -07:00
Jason Penilla
8f7bce1e31 Execute spark tasks during tick sleep (#11525) 2024-10-27 14:00:06 -07:00
Jason Penilla
ad03975163 Fix unused parameter in PlayerList#remove 2024-10-27 12:09:27 -07:00
Jason Penilla
0360c9a5fa Remove unnecessary AT 2024-10-27 11:26:21 -07:00
Lulu13022002
b501e56e80 Fix NPE and StackOverflowError for dispensers 2024-10-27 18:47:50 +01:00
Nassim Jahnke
eb6f344912 Remove timings impl 2024-10-27 18:11:15 +01:00
Bjarne Koll
966c80c18f Update material tags and entity effect 2024-10-27 12:20:17 +01:00
Nassim Jahnke
a937f3ebd3 Another one 2024-10-27 12:02:26 +01:00
Nassim Jahnke
99e72f052b Add back per player mob spawning
Also removes the `info.mobCategoryCounts.mergeInt` call that - at least from what I can tell - has been wrongly counting spawned mobs twice. The runner passed via `info::afterSpawn` already counts up that exact number in the same exact places (where `j`, the return value used here, is incremented)
2024-10-27 11:56:51 +01:00
Nassim Jahnke
88aa8528c9 More patches 2024-10-27 10:26:44 +01:00
Nassim Jahnke
ba24f1b59d Readd last API patch (with TODO) 2024-10-27 09:43:00 +01:00
Nassim Jahnke
909afb02ee Delete some old patches 2024-10-27 09:24:59 +01:00
Jake Potrebic
1bae0a3107 re-add improve perf of mass crafts 2024-10-26 12:50:32 -07:00
Lulu13022002
20093331cf fix DamageTypeTags init 2024-10-26 19:41:56 +02:00
Lulu13022002
a3a0e46862 fix item meta 2024-10-26 19:11:37 +02:00
Nassim Jahnke
3cf764645b Apply more patches 2024-10-26 17:49:28 +02:00
Lulu13022002
7ce0d944b6 update generator 2024-10-26 18:03:25 +02:00
Shane Freeder
49e63e0b01 Update WorldServer#serverlevelData mapping 2024-10-26 15:11:09 +01:00
Jason Penilla
cfaa6f33b8 Apply watchdoge patches 2024-10-25 18:13:48 -07:00
Spottedleaf
d6cb65cd0f Fix boats/minecarts not dropping when destroyed
Diff to clone the item was lost, which meant that the spawned
item was air.
2024-10-25 15:04:29 -07:00
Spottedleaf
9f5bf318a5 Add startup flag to disable gamerule limits
-DPaper.DisableGameRuleLimits=true will disable gamerule limits
2024-10-25 14:22:01 -07:00
Spottedleaf
352bf9dc13 Revert "Add max minecarft speed gamerule config"
This reverts commit c46650d89f.
2024-10-25 14:10:40 -07:00
Spottedleaf
c46650d89f Add max minecarft speed gamerule config 2024-10-25 14:06:01 -07:00
Bjarne Koll
a02a757a57 Fix crafting (and server icon) 2024-10-25 22:33:37 +02:00
Spottedleaf
c0a178dc45 Fix MSPT command
Used wrong variable for tick length
2024-10-25 13:19:27 -07:00
Spottedleaf
0fc6c032fb Fix Anti-Xray using wrong data in chunk deserialize 2024-10-25 12:57:20 -07:00
Spottedleaf
97d6e76ee5 fix compile issues 2024-10-25 12:47:52 -07:00
Jason Penilla
9adbb0e5c1 Specify mainCapabilityAttribute for paper-api 2024-10-25 12:47:24 -07:00
Spottedleaf
3d5706bf30 Rebase fixups 2024-10-25 12:24:15 -07:00
Spottedleaf
9b124dba9b Review patch-to-patch diff
Looks OK
2024-10-25 12:11:20 -07:00
Spottedleaf
d83a56b430 Fix compile issues 2024-10-25 11:46:53 -07:00
Spottedleaf
1d63b06b5e Finish rebase 2024-10-25 11:40:25 -07:00
Spottedleaf
d7d227d746 Prepare rebase 2024-10-25 11:24:51 -07:00