portal suffocation and antiCheat disabled.

This commit is contained in:
gnembon committed 2019-07-07 18:52:56 -03:00
1 parent 76334f9a68
commit 800b26bf18
10 files changed
+239 -48

No files matched your search

@@ -12,12 +12,14 @@ public class MinecraftDedicatedServerMixin
{
//to inject right before
// this.tickWorlds(booleanSupplier_1);
@Inject(method = "setupServer", at = @At("TAIL"))
@Inject(method = "setupServer", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/dedicated/MinecraftDedicatedServer;loadWorld(Ljava/lang/String;Ljava/lang/String;JLnet/minecraft/world/level/LevelGeneratorType;Lcom/google/gson/JsonElement;)V",
shift = At.Shift.BEFORE
))
private void onSetupServer(CallbackInfoReturnable<Boolean> cir) {
//CM start game hook
CarpetServer.onGameStarted();
//CM init - all stuff loaded from the server, just before worlds loading
CarpetServer.onServerLoaded((MinecraftDedicatedServer) (Object) this);
}
}