Thanks Intellij

This commit is contained in:
FlorianMichael 2024-02-14 23:09:59 +01:00
parent 6caf91ee60
commit f9d15bbbd5
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,7 @@ import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
public class MixinServerData implements ExtendedServerData {
@Unique
private VersionEnum viaForge$version;
private ProtocolVersion viaForge$version;
@Inject(method = "getNBTCompound", at = @At(value = "INVOKE", target = "Lnet/minecraft/nbt/NBTTagCompound;setString(Ljava/lang/String;Ljava/lang/String;)V", ordinal = 0), locals = LocalCapture.CAPTURE_FAILHARD)
public void saveVersion(CallbackInfoReturnable<NBTTagCompound> cir, NBTTagCompound nbttagcompound) {
@ -64,12 +64,12 @@ public class MixinServerData implements ExtendedServerData {
}
@Override
public VersionEnum viaForge$getVersion() {
public ProtocolVersion viaForge$getVersion() {
return viaForge$version;
}
@Override
public void viaForge$setVersion(VersionEnum version) {
public void viaForge$setVersion(ProtocolVersion version) {
viaForge$version = version;
}

View File

@ -26,7 +26,6 @@ import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.network.Packet;
import net.minecraft.world.World;
import net.raphimc.vialoader.util.VersionEnum;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.Unique;