mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-21 11:55:13 +01:00
Cleanup 1.12 mod metadata (#90)
acceptableRemoteVersions = "*", clientSideOnly=true Remove spam debug msg
This commit is contained in:
parent
e9e1aa0e4e
commit
4d01ae9eee
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user