Jason Penilla
882d733203
More work on runs
2024-12-03 11:57:48 -07:00
Jason Penilla
9b6982bf65
Work on fixing runs
2024-12-03 11:57:48 -07:00
Jason Penilla
5635373cff
Replace AT task dependency workaround
2024-12-03 11:57:47 -07:00
Jason Penilla
76d2c36481
WIP: Use ModDevGradle instead of archloom for common and NeoForge
2024-12-03 11:57:47 -07:00
Jason Penilla
ca791ddc74
update metadata for 1.21.4
2024-12-03 11:57:33 -07:00
Spottedleaf
7f08c11a11
Start update to 1.21.4
...
Remove the EnderDragon entity retrieval inside ChunkEntitySlices
and move it to PlatformHooks#addToGetEntities for fabric (neoforge
already did this).
2024-12-03 10:48:55 -08:00
Spottedleaf
93b908350e
Throw when sync loading chunks after shutdown
...
The caller would block indefinitely if a sync load is requested
during shutdown. Rather than block indefinitely, we should throw
an exception to indicate to the caller that the chunk system is
unable to process requests.
2024-12-02 23:13:22 -08:00
Spottedleaf
4bd7eb8b72
Set version to 0.2.0-SNAPSHOT
2024-12-01 16:05:06 -08:00
Spottedleaf
a6cf977c5f
Set version to 0.2.0-beta.5
v0.2.0-beta.5
2024-12-01 16:00:29 -08:00
Spottedleaf
8ed23bc8f3
Fix several off-by-one errors in view distance calculations
...
1. For NearbyPlayers, we need to be using the view distance, and
not the load distance (which is +1 of the view distance).
2. Correctly clamp tick distance to view distance. Since
load distance is +1 of view distance, we need to subtract
one from the load distance when clamping.
Additionally, add checks inside ViewDistances to ensure that
the inputs are in range to catch future errors.
2024-12-01 15:30:33 -08:00
Spottedleaf
7034995878
Clamp simulation distance
...
Values above MAX_VIEW_DISTANCE do not make sense to configure,
as it is clamped to the load view distance.
2024-12-01 15:29:49 -08:00
Spottedleaf
ca3d776562
Adjust constant collision shape determination
...
Our previous hack did not actually catch every case. For now,
it will only assume a constant collision shape of EMPTY for
air blocks.
Fixes https://github.com/PaperMC/Paper/issues/11697
2024-12-01 12:00:31 -08:00
Spottedleaf
1a077389c2
Force LazyEntityCollisionContext#getEntity() to delegate
...
By delegating when the entity is retrieved, we can correctly catch
cases where the collision method is inspecting some entity state.
2024-12-01 12:00:18 -08:00
Spottedleaf
49bcc60cf5
Only call config initialisers if reload succeeded
2024-12-01 11:31:16 -08:00
Spottedleaf
8b1f31ade8
Drop RegionFileStorage.RegionFileSizeException diff in MoonriseRegionFileIO
...
This diff should be implemented in Paper. Previously, the diff was
in the chunk system patch in Paper - but it should be in its own
separate patch.
2024-11-28 17:53:36 -08:00
Spottedleaf
4d88e04e3c
Do not call modifyEntityTrackingRange on own range
...
The range is already modified, so this call will not do anything.
2024-11-27 12:20:50 -08:00
Spottedleaf
33889c3850
Replace Level/Entity randoms with ThreadUnsafeRandom
...
This avoids the expensive CAS logic at the expense of losing the
thread check.
2024-11-27 05:56:34 -08:00
Spottedleaf
37ac3003cb
Replace SimpleRandom with (Simple)ThreadUnsafeRandom
...
ThreadUnsafeRandom is a random implementation that is
identical to LegacyRandomSource behaviourally, but
without the thread checks.
SimpleThreadUnsafeRandom is ThreadUnsafeRandom except with
its nextInt(int) function replaced with a faster
but more biased implementation when bound is very large.
2024-11-27 05:56:34 -08:00
Jason Penilla
28128d06c1
Disable immediate loading screen closure by default
2024-11-26 15:51:35 -07:00
Spottedleaf
6f9620787b
Use https for YamlConfig repo
...
SSH isn't setup in actions so it cannot clone via SSH.
2024-11-25 09:30:49 -08:00
Spottedleaf
cbf6c118dc
Mark install_deps.sh as executable
2024-11-25 09:25:32 -08:00
Spottedleaf
d44fa1f8aa
Move YamlConfig to own project
2024-11-25 09:17:11 -08:00
Spottedleaf
3d9ae3f018
Fix non block ticking chunks not sending block/light updates
...
Needed to redirect the getTickingChunk call in
broadcastChangedChunks to use the chunk to send method.
2024-11-18 13:24:24 -08:00
Spottedleaf
d24f6c2874
Do not create unneccessary callback in ChunkTaskScheduler#scheduleChunkLoad
...
If the parameter has addTicket = false and onComplete = null,
then the loadCallback would do no work and as a result does
not need to be created.
2024-11-17 14:09:00 -08:00
Jason Penilla
f190cdd8cb
Back to 0.2.0-SNAPSHOT
2024-11-17 11:31:37 -07:00
Jason Penilla
e7510eda16
0.2.0-beta.4
v0.2.0-beta.4
2024-11-17 10:49:05 -07:00
Jason Penilla
d9442c1492
Update lithium overrides
2024-11-17 10:28:38 -07:00
Jason Penilla
93eb2786f2
Update ServerExplosionMixin for NeoForge changes
2024-11-17 10:27:31 -07:00
Jason Penilla
1bef6823c5
Update lithium, NeoForge, loom
2024-11-16 17:35:27 -07:00
Jason Penilla
01152eec95
Update NeoForge lithium overrides
2024-11-16 17:34:44 -07:00
Spottedleaf
1e39f5370a
Fix experimental minecart collisions on sloped rails
...
We are supposed to ignore some collisions on the sloped
rail.
2024-11-14 13:31:22 -08:00
Jason Penilla
ea50ba38ea
Apply FerriteCore config overrides automatically
...
New versions of FC added this mechanism
closes #66
2024-11-05 16:12:37 -07:00
Spottedleaf
c00b9fcd7b
Move back to 0.2.0-SNAPSHOT
2024-11-02 16:54:15 -07:00
Spottedleaf
bad5cae4d8
0.2.0-beta.3
v0.2.0-beta.3
2024-11-02 16:50:24 -07:00
Spottedleaf
e3b1502bb6
0.2.0-beta.9
2024-11-02 16:48:24 -07:00
Spottedleaf
54fc964987
Handle corrupt light data gracefully
...
First, if the light data is not marked as correct, we should not be
parsing it in the first place. This will eliminate errors from
parsing possibly different versioned light data.
Secondly, if parsing the light data throws an exception (from
the SWMRNibbleArray constructor), then we can simply mark
the returned chunk as having incorrect light data - rather than
propagating the exception and causing the chunk to be re-generated.
2024-11-02 16:14:05 -07:00
Spottedleaf
0cbc9aa1a1
Update README to reflect official nature of the patches
2024-10-31 12:05:59 -07:00
Jason Penilla
19e2136ae1
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:32:04 -07:00
Jason Penilla
126cc03747
Back to 0.2.0-SNAPSHOT
2024-10-26 11:02:43 -07:00
Jason Penilla
ceb4936d9d
0.2.0-beta.2
v0.2.0-beta.2
2024-10-26 10:58:58 -07:00
Jason Penilla
3cb888e894
Update Fabric API and call ServerChunkEvents.CHUNK_GENERATE
2024-10-26 09:51:34 -07:00
Jason Penilla
7bedc1a7de
Back to 0.2.0-SNAPSHOT
2024-10-24 11:54:52 -07:00
Jason Penilla
718f6e1369
0.2.0-beta.1
v0.2.0-beta.1
2024-10-24 11:48:32 -07:00
Spottedleaf
da9ab708a6
Import diff
...
The ChunkTaskScheduler one is actually needed in Paper to compile.
2024-10-24 11:39:02 -07:00
Spottedleaf
f22335f0b6
Move logic in anyPlayerCloseEnoughForSpawning overwrite to correct place
...
The internal function is responsible for the actual player iteration.
2024-10-24 10:00:23 -07:00
Spottedleaf
a3f2328000
Redirect chunk holder retrieval in ChunkMap#forEachSpawnCandidateChunk
...
The old chunk holder field is not maintained so this would
NPE.
2024-10-24 09:50:35 -07:00
Spottedleaf
529b9a44bb
Add missing overwrite for DistanceManager#getTickingChunks
2024-10-24 09:37:16 -07:00
Spottedleaf
1e9a6504a1
Add world parameter to configAutoSaveInterval/configMaxAutoSavePerTick
...
Paper needs the world parameter to access the config values,
but in Moonrise we do not.
2024-10-24 08:29:57 -07:00
Spottedleaf
9c46dcbb94
Remove unused read/write methods on ChunkSystemSectionStorage
...
As with the last commit, these were only used in the legacy
region file I/O code and as such there is no reason to maintain
them.
2024-10-24 07:10:48 -07:00
Spottedleaf
9a1e04389a
Adjust SectionStorageMixin to destroy hooks
...
In the legacy implementation of the region file I/O (before
the chunk system), these hooks were actually used. Now, they are not
and so there is no point in maintaining them.
2024-10-24 07:01:46 -07:00