Switch from FG to archloom + essential-gradle-toolkit

- Upgrade Gradle to 8.7
- Increase build daemon max memory to 8GB because archloom can compile a lot
  more projects at the same time.
- Disable Minecraft 1.8 (not 1.8.9) because archloom fails to set up for that
This commit is contained in:
Jonas Herzig
2022-05-29 18:08:42 +02:00
parent 706d46f6a9
commit ad49a69f37
19 changed files with 390 additions and 767 deletions

View File

@@ -101,7 +101,7 @@ public class EXRWriter implements FrameConsumer<BitmapFrame> {
for (int i = 0; i < numChannels; i++) {
FloatBuffer channel = images.slice();
channel.position(width * height * i);
imagePointers.put(i, channel.slice());
imagePointers.put(i, memAddress(channel));
if (i == 4) {
depthChannel = channel;
} else {
@@ -125,8 +125,8 @@ public class EXRWriter implements FrameConsumer<BitmapFrame> {
int ret = SaveEXRImageToFile(image, header, path.toString(), err);
if (ret != TINYEXR_SUCCESS) {
String message = err.getStringASCII(0);
FreeEXRErrorMessage(err.getByteBuffer(0));
String message = memASCII(err.get(0));
nFreeEXRErrorMessage(err.get(0));
throw new IOException(message);
}
} catch (Throwable t) {

View File

@@ -404,7 +404,12 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
if (mc.world != null) {
for (PlayerEntity playerEntity : mc.world.getPlayers()) {
if (!playerEntity.updateNeeded && playerEntity instanceof OtherClientPlayerEntity) {
// FIXME preprocessor should (and used to) be able to map this
//#if MC>=11400
playerEntity.tickMovement();
//#else
//$$ playerEntity.onLivingUpdate();
//#endif
}
}
}