mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
0.11.0
This commit is contained in:
1 parent
63535e6b3d
commit
aadd309397
20 files changed
+228
-101
No files matched your search
@@ -48,7 +48,7 @@ import java.util.zip.ZipOutputStream;
|
||||
|
||||
public class ReplayCombiner {
|
||||
|
||||
public static void combine(RegistryAccess registryAccess, Path first, Path second, Path output) throws Exception {
|
||||
public static void combine(RegistryAccess registryAccess, String replayName, Path first, Path second, Path output) throws Exception {
|
||||
StreamCodec<ByteBuf, Packet<? super ClientGamePacketListener>> gamePacketCodec = GameProtocols.CLIENTBOUND_TEMPLATE.bind(RegistryFriendlyByteBuf.decorator(registryAccess)).codec();
|
||||
|
||||
try (FileSystem firstFileSystem = FileSystems.newFileSystem(first);
|
||||
@@ -81,6 +81,7 @@ public class ReplayCombiner {
|
||||
}
|
||||
|
||||
firstMetadata.replayIdentifier = UUID.randomUUID();
|
||||
firstMetadata.name = replayName;
|
||||
for (Map.Entry<Integer, ReplayMarker> entry : secondMetadata.replayMarkers.entrySet()) {
|
||||
firstMetadata.replayMarkers.put(entry.getKey() + firstMetadata.totalTicks, entry.getValue());
|
||||
}
|
||||
@@ -134,6 +135,7 @@ public class ReplayCombiner {
|
||||
zipOut.write(bytes);
|
||||
zipOut.closeEntry();
|
||||
|
||||
lastCacheIndex = cacheIndex;
|
||||
chunkCacheOutput = new RegistryFriendlyByteBuf(Unpooled.buffer(), registryAccess);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user