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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user