Port to MC 1.20

This commit is contained in:
Jonas Herzig
2023-06-12 09:39:48 +02:00
parent 96a05e256f
commit 7726550131
14 changed files with 90 additions and 11 deletions

View File

@@ -440,7 +440,11 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
//#endif
LightingProvider provider = world.getChunkManager().getLightingProvider();
while (provider.hasUpdates()) {
//#if MC>=12000
//$$ provider.doLightUpdates();
//#else
provider.doLightUpdates(Integer.MAX_VALUE, true, true);
//#endif
}
}
};
@@ -712,6 +716,9 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
//#if MC>=11900
//$$ , java.util.Optional.empty()
//#endif
//#if MC>=12000
//$$ , packet.portalCooldown()
//#endif
);
//#else
//#if MC>=10800
@@ -775,6 +782,9 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
//#if MC>=11900
//$$ , java.util.Optional.empty()
//#endif
//#if MC>=12000
//$$ , respawn.getPortalCooldown()
//#endif
);
//#else
//#if MC>=10809