Skip to content

Commit

Permalink
Thanks Intellij
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Feb 14, 2024
1 parent 6caf91e commit f9d15bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
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) {
Expand Down Expand Up @@ -64,12 +64,12 @@ public void track(ServerData serverDataIn, CallbackInfo ci) {
}

@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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
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;
Expand Down

0 comments on commit f9d15bb

Please sign in to comment.