Default to passive networking

This commit is contained in:
Sollace 2022-06-09 22:27:24 +02:00
parent 12dc7c1d28
commit c5aab0ea00
3 changed files with 1 additions and 8 deletions

View file

@ -55,8 +55,7 @@ public class Channel {
throw new RuntimeException("Client packet send called by the server");
}
if (MineLittlePony.getInstance().getConfig().passiveNetworking.get()
&& !registered) {
if (!registered) {
if (MinecraftClient.getInstance().isInSingleplayer() || MinecraftClient.getInstance().isIntegratedServerRunning()) {
MineLittlePony.logger.info("Sending pony skin data over as we are either in single-player or lan");
} else {

View file

@ -1,6 +1,5 @@
package com.minelittlepony.client;
import net.minecraft.block.Blocks;
import net.minecraft.block.Material;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.player.PlayerEntity;

View file

@ -27,11 +27,6 @@ public class PonyConfig extends JsonConfig {
public final Setting<Boolean> ponyskulls = value("settings", "ponyskulls", true);
public final Setting<Boolean> frustrum = value("settings", "frustrum", true);
/**
* Temporary flag to enable post-1.18 networking behaviour.
*/
public final Setting<Boolean> passiveNetworking = value("settings", "passiveNetworking", false);
/**
* Debug override for pony sizes.
*/