Cleanup 1.12 mod metadata (#90)

acceptableRemoteVersions = "*", clientSideOnly=true

Remove spam debug msg
This commit is contained in:
Howard ZHY 2024-05-06 22:58:50 +08:00 committed by GitHub
parent e9e1aa0e4e
commit 4d01ae9eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 7 deletions

View File

@ -31,7 +31,7 @@ import net.raphimc.vialegacy.protocols.release.protocol1_8to1_7_6_10.providers.G
import java.io.File; import java.io.File;
import java.util.function.Supplier; import java.util.function.Supplier;
@Mod(modid = "viaforge") @Mod(modid = "viaforge", name = "ViaForge", acceptableRemoteVersions = "*", clientSideOnly=true, useMetadata=true)
public class ViaForge1122 implements VFPlatform { public class ViaForge1122 implements VFPlatform {
@Mod.EventHandler @Mod.EventHandler

View File

@ -40,7 +40,6 @@ public class MixinEntityPlayerSP extends AbstractClientPlayer {
@Redirect(method = "onUpdateWalkingPlayer", at = @At(value = "FIELD", target = "Lnet/minecraft/client/entity/EntityPlayerSP;prevOnGround:Z", ordinal = 0)) @Redirect(method = "onUpdateWalkingPlayer", at = @At(value = "FIELD", target = "Lnet/minecraft/client/entity/EntityPlayerSP;prevOnGround:Z", ordinal = 0))
public boolean emulateIdlePacket(EntityPlayerSP instance) { public boolean emulateIdlePacket(EntityPlayerSP instance) {
System.out.println(ViaForgeCommon.getManager().getTargetVersion());
if (ViaForgeCommon.getManager().getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8)) { if (ViaForgeCommon.getManager().getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8)) {
// <= 1.8 spams the idle packet instead of only sending it when the ground state changes // <= 1.8 spams the idle packet instead of only sending it when the ground state changes
// So we invert the original logic: // So we invert the original logic:

View File

@ -4,15 +4,12 @@
"name": "ViaForge", "name": "ViaForge",
"description": "Client-side Implementation of the Via* projects for Minecraft Forge", "description": "Client-side Implementation of the Via* projects for Minecraft Forge",
"version": "${version}", "version": "${version}",
"mcversion": "[1.12.2]", "mcversion": "[1.12,)",
"url": "https://github.com/ViaVersion/ViaForge", "url": "https://github.com/ViaVersion/ViaForge",
"updateUrl": "",
"authorList": [ "authorList": [
"FlorianMichael/EnZaXD" "FlorianMichael/EnZaXD"
], ],
"credits": "https://github.com/FlorianMichael/", "credits": "https://github.com/FlorianMichael/",
"logoFile": "icon.png", "logoFile": "icon.png"
"screenshots": [],
"dependencies": []
} }
] ]