Commit Graph
52 Commits
Author SHA1 Message Date
Spottedleaf 4ded614f0b dataconverter 2024-04-24 23:49:13 -07:00
Jake Potrebic 47ee5579ff Begin update to 1.20.5 2024-04-23 10:02:08 -07:00
Jake PotrebicandJason Penilla 89528bff42 Update patches to handle vineflower decompiler (#10406)
* Update patches to handle vineflower decompiler

* update patches again to handle inlined simple lambdas

* update vf again and re-apply/rebuild patches

* update patches after removal of verify-merges flag

* fix compile issue

* remove maven local

* fix some issues

* address more issues

* fix collision patch

* use paperweight release

* more fixes

* update fineflower and fix patches again

* add missing comment descriptor

---------

Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2024-04-12 12:14:06 -07:00
Nassim Jahnke d71804b7f8 Finish moving patches back and improving compilable state 2024-01-25 10:54:46 +01:00
Nassim Jahnke 7bd0fbea6c Drop old packs in setResourcePack 2023-12-06 20:46:49 +01:00
Nassim Jahnke 42a06e89bb It compiles 2023-12-06 20:40:37 +01:00
Nassim Jahnke 0e154a1701 More work 2023-12-05 20:12:12 +01:00
Nassim Jahnke 46f4547805 Prepare for 1.20.3 dev 2023-12-05 18:20:55 +01:00
Nassim Jahnke 5944323d84 Fix item effects conversion if no tag is present
Fixes #9796
2023-10-05 16:03:26 +10:00
Shane Freeder 3ebe415f47 Fix/update wiki (#9758) 2023-09-25 00:02:46 +01:00
Noah van der Aa 233b5b5bec more more work 2023-09-21 21:54:46 +02:00
Noah van der Aa 524eeedaa8 So it begins... 2023-09-21 19:18:04 +02:00
Joe 68b63a9341 Copy NBT in legacy dragon fight converter 2023-09-06 18:33:31 -07:00
Joe 14f834f0a5 Copy NBT in upgrade data neighbor ticks 2023-09-06 18:30:02 -07:00
Spottedleaf 3cfd74da9e Fix IntegerUtil#getDivisorNumbers
Use unsigned mod operation for initialization of anc

Also includes
- https://github.com/PaperMC/DataConverter/commit/5a0cefb45e246ef36901fb62448571edd82e7296
- https://github.com/PaperMC/Starlight/commit/acc8ed9634bbe27ec68e8842e420948bfa9707e7
2023-06-16 09:05:36 -07:00
Noah van der Aa 0ec23e4426 1.20: Fix a bunch of compile issues (#9273) 2023-06-08 01:21:20 +02:00
Nassim Jahnke 890a93c65e Let's hope this is fine 2023-06-07 20:03:53 +02:00
Nassim Jahnke 1bda3d4d2a Start working on 1.20 2023-06-07 18:24:39 +02:00
Jake Potrebic a05865b56b Fix structure loading 2023-03-15 18:57:29 -07:00
Nassim Jahnke 8ff5a4a679 Update DataConverter 2023-03-15 20:17:42 +01:00
Jake Potrebic 8b4edb6f19 fix more compile errors 2023-03-14 16:10:18 -07:00
Nassim Jahnke 92dd8645a8 More more patches 2023-03-14 19:36:39 +01:00
Nassim Jahnke 15ade6f446 More patches 2023-03-14 19:05:23 +01:00
Nassim Jahnke 08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
Nassim Jahnke be2259ea83 Fix MCVersions 2022-12-07 23:29:30 +01:00
Nassim Jahnke ee75b5dc2d Patching patches 2022-12-07 19:32:25 +01:00
Nassim Jahnke b7dd55ce72 API patches 2022-12-07 17:46:46 +01:00
Spottedleaf 0f1a8717e8 Rewrite chunk system (#8177)
Patch documentation to come

Issues with the old system that are fixed now:
- World generation does not scale with cpu cores effectively.
- Relies on the main thread for scheduling and maintaining chunk state, dropping chunk load/generate rates at lower tps.
- Unreliable prioritisation of chunk gen/load calls that block the main thread.
- Shutdown logic is utterly unreliable, as it has to wait for all chunks to unload - is it guaranteed that the chunk system is in a state on shutdown that it can reliably do this? Watchdog shutdown also typically failed due to thread checks, which is now resolved.
- Saving of data is not unified (i.e can save chunk data without saving entity data, poses problems for desync if shutdown is really abnormal.
- Entities are not loaded with chunks. This caused quite a bit of headache for Chunk#getEntities API, but now the new chunk system loads entities with chunks so that they are ready whenever the chunk loads in. Effectively brings the behavior back to 1.16 era, but still storing entities in their own separate regionfiles.

The above list is not complete. The patch documentation will complete it.

New chunk system hard relies on starlight and dataconverter, and most importantly the new concurrent utilities in ConcurrentUtil.

Some of the old async chunk i/o interface (i.e the old file io thread reroutes _some_ calls to the new file io thread) is kept for plugin compat reasons. It will be removed in the next major version of minecraft.

The old legacy chunk system patches have been moved to the removed folder in case we need them again.
2022-09-26 01:02:51 -07:00
Nassim Jahnke 9364ea991a Compile fixes 2022-07-28 00:04:27 +02:00
Nassim Jahnke ca9ce05bb0 More more more more work 2022-07-27 23:19:52 +02:00
Nassim Jahnke 858aabab7c Move patches over, start with first few 2022-07-27 20:52:03 +02:00
Spottedleaf 91cf4f0392 Correct dataconverter diff
Missed renames + game event listener walker stuff
2022-06-10 20:54:05 -07:00
Nassim Jahnke 3cd8d0c681 More compilation error fixes 2022-06-08 16:24:55 +02:00
MiniDigger | Martin 80c50e91d4 Add missing DataConverter and fix some imports
not fully sure those imports (or well, those classes being outside of the mc package) are right, but who cares 🤷
2022-06-08 14:01:30 +02:00
Nassim Jahnke 7feebbe413 Things, and DataConverter (maybe) 2022-06-08 13:12:14 +02:00
Nassim Jahnke 1148687a8d Prepare for 1.19 dev 2022-06-07 18:52:56 +02:00
Joseph Burton f34f678b20 Fix campfire walker in V1920 2022-06-06 17:51:12 -07:00
Joseph Burton 382529a546 [DataConverter] Fix generator options parsing 2022-06-05 22:49:42 +01:00
Joseph Burton 56d8a72eee Fix V1451 dataconverter stat types 2022-04-25 18:06:04 +02:00
Spottedleaf c232bf0419 Add missing glow_item_frame walkers
Needs one for ItemStack and Entity. It looks like I missed
the entity one because Mojang defined it as being simple,
which it certainly isn't (they "missed" it too).
2022-03-04 20:57:59 -08:00
Nassim Jahnke a3698d5b7e Update Datafixer 2022-02-28 23:21:15 +01:00
Spottedleaf 568435b5fa Add DataConverter to StructureCheck, for structure lookups
Mojang added a partial conversion here to quickly check for
structures, which bypasses the chunk system. So we need a
hook here.
2022-02-25 08:46:35 -08:00
Jason Penilla 2c861d2ae1 [ci skip] Update parameter mappings 2022-01-25 20:43:53 -07:00
Spottedleaf a5872264a3 Create sections for chunk conversion if non-existant
Required to add in the new biome sections
2021-12-18 01:04:00 -08:00
Spottedleaf 8671893fb5 Bounds check biomes length before using.
Missed the diff by Mojang that added this, apparently some
ancient code created zero-length biomes.
2021-12-17 06:38:18 -08:00
Jake Potrebic 8aed88b8db Updated Upstream (Bukkit/CraftBukkit/Spigot)
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:
c9b35cdb PR-684: Make PotionEffectType implement Keyed

CraftBukkit Changes:
c86a3f7a PR-959: Fix World#refreshChunk
af8a8b70 PR-962: Make PotionEffectType implement Keyed

Spigot Changes:
7514aa37 SPIGOT-6806: Add setting to disable new chunks generation under existing chunks
2021-11-27 19:24:49 -08:00
Jason Penilla 11418ffcc1 Use old dataconverter hooks (#6938) 2021-11-27 01:10:23 -08:00
Jason Penilla 4e12e11a9b even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even even more patches 2021-11-24 23:47:39 -08:00
Jason Penilla ed6d43ddb0 Prepare for updating server patches 2021-11-23 00:57:41 -08:00
SpottedleafandCallum Seabrook 3e7769feae Fixed layers from V2550 not being added to list (#6541)
Note from Spottedleaf:
Please note that this doesn't fix any problems using dataconverter
because dataconverter does not re-route world gen settings conversion.

Co-authored-by: Callum Seabrook <callum.seabrook@prevarinite.com>
2021-09-01 14:25:25 -07:00