Port to MC 1.18-pre1

This commit is contained in:
Jonas Herzig
2021-11-14 16:15:35 +01:00
parent d2f27e3918
commit 6e1febdab8
17 changed files with 219 additions and 7 deletions

View File

@@ -604,14 +604,19 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
//#if MC>=11400
p = new GameJoinS2CPacket(
entId,
//#if MC>=11800
//$$ packet.hardcore(),
//#endif
GameMode.SPECTATOR,
//#if MC>=11600
GameMode.SPECTATOR,
//#endif
//#if MC<11800
//#if MC>=11500
packet.getSha256Seed(),
//#endif
false,
//#endif
//#if MC>=11600
//#if MC>=11603
packet.getDimensionIds(),
@@ -626,11 +631,17 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
//#else
//$$ packet.getDimension(),
//#endif
//#if MC>=11800
//$$ packet.sha256Seed(),
//#endif
0, // max players (has no getter -> never actually used)
//#if MC<11600
//$$ packet.getGeneratorType(),
//#endif
packet.getViewDistance(),
//#if MC>=11800
//$$ packet.simulationDistance(),
//#endif
packet.hasReducedDebugInfo()
//#if MC>=11500
, packet.showsDeathScreen()