Updated build script to exclude libraries

This commit is contained in:
FlorianMichael 2023-11-06 16:43:43 +01:00
parent 93ec651dfd
commit e6b72d33a6
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 6 additions and 10 deletions

View File

@ -65,12 +65,13 @@ dependencies {
} }
jis "net.raphimc:ViaAprilFools:${project.viaaprilfools_version}" jis "net.raphimc:ViaAprilFools:${project.viaaprilfools_version}"
jis ("net.raphimc:ViaBedrock:${project.viabedrock_version}") { jis ("net.raphimc:ViaBedrock:${project.viabedrock_version}") {
exclude group: "io.netty"
exclude group: "io.jsonwebtoken"
exclude group: "net.lenni0451.mcstructs", module: "text" exclude group: "net.lenni0451.mcstructs", module: "text"
exclude group: "io.jsonwebtoken", module: "jjwt-impl"
exclude group: "io.jsonwebtoken", module: "jjwt-gson"
exclude group: "com.mojang", module: "brigadier" exclude group: "com.mojang", module: "brigadier"
} }
jis ("net.raphimc:ViaLoader:${project.vialoader_version}") { jis ("net.raphimc:ViaLoader:${project.vialoader_version}") {
exclude group: "com.google.guava", module: "guava"
exclude group: "org.slf4j", module: "slf4j-api" exclude group: "org.slf4j", module: "slf4j-api"
} }
@ -80,10 +81,7 @@ dependencies {
exclude group: "org.slf4j", module: "slf4j-api" exclude group: "org.slf4j", module: "slf4j-api"
} }
jis("org.cloudburstmc.netty:netty-transport-raknet:${project.raknet_transport_version}") { jis("org.cloudburstmc.netty:netty-transport-raknet:${project.raknet_transport_version}") {
exclude group: "io.netty", module: "netty-common" exclude group: "io.netty"
exclude group: "io.netty", module: "netty-buffer"
exclude group: "io.netty", module: "netty-codec"
exclude group: "io.netty", module: "netty-transport"
} }
// Lenni0451 Libraries // Lenni0451 Libraries

View File

@ -15,7 +15,7 @@ archives_base_name=viafabricplus
# ViaVersion Libraries # ViaVersion Libraries
viaversion_version=4.9.0-23w44a-SNAPSHOT viaversion_version=4.9.0-23w44a-SNAPSHOT
viabackwards_version=4.9.0-23w43a-SNAPSHOT viabackwards_version=4.9.0-23w44a-SNAPSHOT
vialegacy_version=2.2.21-SNAPSHOT vialegacy_version=2.2.21-SNAPSHOT
viaaprilfools_version=2.0.10-SNAPSHOT viaaprilfools_version=2.0.10-SNAPSHOT
viabedrock_version=0.0.3-SNAPSHOT viabedrock_version=0.0.3-SNAPSHOT

View File

@ -22,14 +22,12 @@ import com.viaversion.viaversion.api.minecraft.Position;
import com.viaversion.viaversion.protocols.protocol1_13to1_12_2.providers.PlayerLookTargetProvider; import com.viaversion.viaversion.protocols.protocol1_13to1_12_2.providers.PlayerLookTargetProvider;
import net.minecraft.client.MinecraftClient; import net.minecraft.client.MinecraftClient;
import net.minecraft.util.hit.BlockHitResult; import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import org.checkerframework.checker.nullness.qual.Nullable;
public class ViaFabricPlusPlayerLookTargetProvider extends PlayerLookTargetProvider { public class ViaFabricPlusPlayerLookTargetProvider extends PlayerLookTargetProvider {
@Override @Override
public @Nullable Position getPlayerLookTarget(UserConnection info) { public Position getPlayerLookTarget(UserConnection info) {
if (MinecraftClient.getInstance().crosshairTarget instanceof BlockHitResult blockHitResult) { if (MinecraftClient.getInstance().crosshairTarget instanceof BlockHitResult blockHitResult) {
final BlockPos pos = blockHitResult.getBlockPos(); final BlockPos pos = blockHitResult.getBlockPos();
return new Position(pos.getX(), pos.getY(), pos.getZ()); return new Position(pos.getX(), pos.getY(), pos.getZ());