1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 03:17:38 +00:00

Resolve a few TODOs

- Update ForgeConfigAPI to the latest version, to fix the race
   condition.
 - Move WirelessNetwork lifecycle management to ServerContext.
 - Some doc fixes.
This commit is contained in:
Jonathan Coates
2022-12-03 15:55:48 +00:00
parent 87c6d3aef6
commit fa122a56cf
10 changed files with 26 additions and 41 deletions

View File

@@ -33,11 +33,7 @@ public class ByteBufferChannel implements SeekableByteChannel {
var remaining = Math.min(backing.limit() - position, destination.remaining());
// TODO: Switch to Java 17 methods on 1.18.x
var slice = backing.slice();
slice.position(position);
slice.limit(position + remaining);
destination.put(slice);
destination.put(position, backing, position, remaining);
position += remaining;
return remaining;
}

View File

@@ -391,7 +391,7 @@ public final class ComputerThread {
*/
long scaledPeriod() {
// FIXME: We access this on other threads (in TimeoutState), so their reads won't be consistent. This isn't
// "criticial" behaviour, so not clear if it matters too much.
// "critical" behaviour, so not clear if it matters too much.
// +1 to include the current task
var count = 1 + computerQueue.size();