mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-08 10:09:36 +01:00
24w09a, port to upstream changes
This commit is contained in:
parent
25f3c470e3
commit
fbe5cf8ded
@ -7,9 +7,9 @@ maven_version=3.6.0-SNAPSHOT
|
|||||||
maven_group=de.florianmichael
|
maven_group=de.florianmichael
|
||||||
|
|
||||||
# ViaVersion
|
# ViaVersion
|
||||||
viaversion_version=4.10.0-24w07a-SNAPSHOT
|
viaversion_version=4.10.0-24w09a-SNAPSHOT
|
||||||
viabackwards_version=4.10.0-24w07a-SNAPSHOT
|
viabackwards_version=4.10.0-24w09a-SNAPSHOT
|
||||||
viarewind_version=3.0.6-SNAPSHOT
|
viarewind_version=3.0.7-24w09a-SNAPSHOT
|
||||||
vialegacy_version=2.2.22-SNAPSHOT
|
vialegacy_version=2.2.22-SNAPSHOT
|
||||||
viaaprilfools_version=2.0.11-SNAPSHOT
|
viaaprilfools_version=2.0.11-SNAPSHOT
|
||||||
vialoader_version=2.2.13-SNAPSHOT
|
vialoader_version=2.2.13-SNAPSHOT
|
||||||
|
@ -21,7 +21,6 @@ package de.florianmichael.viaforge.mixin.impl;
|
|||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.GuiOverlayDebug;
|
import net.minecraft.client.gui.GuiOverlayDebug;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
@ -39,15 +38,7 @@ public class MixinGuiOverlayDebug {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ package de.florianmichael.viaforge.mixin;
|
|||||||
|
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.overlay.DebugOverlayGui;
|
import net.minecraft.client.gui.overlay.DebugOverlayGui;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -39,15 +38,7 @@ public class MixinDebugOverlayGui {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ package de.florianmichael.viaforge.mixin;
|
|||||||
|
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -39,15 +38,7 @@ public class MixinDebugScreenOverlay {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ package de.florianmichael.viaforge.mixin;
|
|||||||
|
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -39,15 +38,7 @@ public class MixinDebugScreenOverlay {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ package de.florianmichael.viaforge.mixin;
|
|||||||
|
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -39,15 +38,7 @@ public class MixinDebugScreenOverlay {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ package de.florianmichael.viaforge.mixin;
|
|||||||
|
|
||||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||||
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
import net.minecraft.client.gui.components.DebugScreenOverlay;
|
||||||
import net.raphimc.vialegacy.api.LegacyProtocolVersion;
|
|
||||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -39,15 +38,7 @@ public class MixinDebugScreenOverlay {
|
|||||||
|
|
||||||
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
if (common.getConfig().isShowProtocolVersionInF3() && version != common.getNativeVersion() && !common.getPlatform().isSingleplayer().get()) {
|
||||||
cir.getReturnValue().add("");
|
cir.getReturnValue().add("");
|
||||||
|
cir.getReturnValue().add("ViaForge: " + version.toString());
|
||||||
int protocolVersion = version.getVersion();
|
|
||||||
if (version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
|
||||||
// Older versions (<= 1.6.4) are using fake ids in ViaLegacy to prevent version duplications / mismatches
|
|
||||||
// So we need to unmap the version to get the real protocol version id
|
|
||||||
protocolVersion = LegacyProtocolVersion.getRealProtocolVersion(protocolVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
cir.getReturnValue().add("ViaForge: " + version.getName() + " (" + protocolVersion + ")");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user