mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Default to passive networking
This commit is contained in:
parent
12dc7c1d28
commit
c5aab0ea00
3 changed files with 1 additions and 8 deletions
|
@ -55,8 +55,7 @@ public class Channel {
|
||||||
throw new RuntimeException("Client packet send called by the server");
|
throw new RuntimeException("Client packet send called by the server");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MineLittlePony.getInstance().getConfig().passiveNetworking.get()
|
if (!registered) {
|
||||||
&& !registered) {
|
|
||||||
if (MinecraftClient.getInstance().isInSingleplayer() || MinecraftClient.getInstance().isIntegratedServerRunning()) {
|
if (MinecraftClient.getInstance().isInSingleplayer() || MinecraftClient.getInstance().isIntegratedServerRunning()) {
|
||||||
MineLittlePony.logger.info("Sending pony skin data over as we are either in single-player or lan");
|
MineLittlePony.logger.info("Sending pony skin data over as we are either in single-player or lan");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.minelittlepony.client;
|
package com.minelittlepony.client;
|
||||||
|
|
||||||
import net.minecraft.block.Blocks;
|
|
||||||
import net.minecraft.block.Material;
|
import net.minecraft.block.Material;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
|
|
@ -27,11 +27,6 @@ public class PonyConfig extends JsonConfig {
|
||||||
public final Setting<Boolean> ponyskulls = value("settings", "ponyskulls", true);
|
public final Setting<Boolean> ponyskulls = value("settings", "ponyskulls", true);
|
||||||
public final Setting<Boolean> frustrum = value("settings", "frustrum", 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.
|
* Debug override for pony sizes.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue