mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-27 12:55:40 +01:00
Thanks Intellij
This commit is contained in:
parent
6caf91ee60
commit
f9d15bbbd5
@ -34,7 +34,7 @@ import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
|||||||
public class MixinServerData implements ExtendedServerData {
|
public class MixinServerData implements ExtendedServerData {
|
||||||
|
|
||||||
@Unique
|
@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)
|
@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) {
|
public void saveVersion(CallbackInfoReturnable<NBTTagCompound> cir, NBTTagCompound nbttagcompound) {
|
||||||
@ -64,12 +64,12 @@ public class MixinServerData implements ExtendedServerData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VersionEnum viaForge$getVersion() {
|
public ProtocolVersion viaForge$getVersion() {
|
||||||
return viaForge$version;
|
return viaForge$version;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void viaForge$setVersion(VersionEnum version) {
|
public void viaForge$setVersion(ProtocolVersion version) {
|
||||||
viaForge$version = version;
|
viaForge$version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@ import net.minecraft.client.entity.EntityPlayerSP;
|
|||||||
import net.minecraft.client.network.NetHandlerPlayClient;
|
import net.minecraft.client.network.NetHandlerPlayClient;
|
||||||
import net.minecraft.network.Packet;
|
import net.minecraft.network.Packet;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.raphimc.vialoader.util.VersionEnum;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import org.spongepowered.asm.mixin.Unique;
|
import org.spongepowered.asm.mixin.Unique;
|
||||||
|
Loading…
Reference in New Issue
Block a user