Skip to content

Commit e68c972

Browse files
Update VV API usage
1 parent ba20ade commit e68c972

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

build-logic/src/main/groovy/vaf.base-conventions.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ base {
2222
}
2323

2424
dependencies {
25-
compileOnly "com.viaversion:viaversion-common:5.0.3-SNAPSHOT"
26-
compileOnly "com.viaversion:viabackwards-common:5.0.3-SNAPSHOT"
25+
compileOnly "com.viaversion:viaversion-common:5.0.4-SNAPSHOT"
26+
compileOnly "com.viaversion:viabackwards-common:5.0.4-SNAPSHOT"
2727
}
2828

2929
publishing {

common/src/main/java/net/raphimc/viaaprilfools/protocol/s20w14infinitetov1_16/Protocol20w14infiniteTo1_16.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import com.viaversion.viaversion.api.minecraft.RegistryType;
2626
import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_16;
2727
import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers;
28-
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
2928
import com.viaversion.viaversion.api.type.Types;
3029
import com.viaversion.viaversion.data.entity.EntityTrackerBase;
3130
import com.viaversion.viaversion.protocols.v1_15_2to1_16.Protocol1_15_2To1_16;
@@ -166,7 +165,6 @@ protected void onMappingDataLoaded() {
166165
@Override
167166
public void init(UserConnection userConnection) {
168167
userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, EntityTypes1_16.PLAYER));
169-
userConnection.getProtocolInfo().getPipeline().add(Via.getManager().getProtocolManager().getBaseProtocol(ProtocolVersion.v1_16));
170168
}
171169

172170
@Override

common/src/main/java/net/raphimc/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
import com.viaversion.viabackwards.api.BackwardsProtocol;
2121
import com.viaversion.viabackwards.api.data.BackwardsMappingData;
2222
import com.viaversion.viabackwards.api.rewriters.SoundRewriter;
23-
import com.viaversion.viaversion.api.Via;
2423
import com.viaversion.viaversion.api.connection.UserConnection;
2524
import com.viaversion.viaversion.api.minecraft.chunks.Chunk;
2625
import com.viaversion.viaversion.api.protocol.packet.PacketWrapper;
27-
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
2826
import com.viaversion.viaversion.api.type.Types;
2927
import com.viaversion.viaversion.api.type.types.chunk.ChunkType1_14;
3028
import com.viaversion.viaversion.protocols.v1_13_2to1_14.Protocol1_13_2To1_14;
@@ -84,7 +82,6 @@ protected void registerPackets() {
8482
@Override
8583
public void init(UserConnection userConnection) {
8684
userConnection.put(new ChunkCenterTracker3D_Shareware());
87-
userConnection.getProtocolInfo().getPipeline().add(Via.getManager().getProtocolManager().getBaseProtocol(ProtocolVersion.v1_14));
8885
}
8986

9087
@Override

common/src/main/java/net/raphimc/viaaprilfools/protocol/scombattest8ctov1_16_2/ProtocolCombatTest8cTo1_16_2.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
*/
1818
package net.raphimc.viaaprilfools.protocol.scombattest8ctov1_16_2;
1919

20-
import com.viaversion.viaversion.api.Via;
21-
import com.viaversion.viaversion.api.connection.UserConnection;
2220
import com.viaversion.viaversion.api.protocol.AbstractProtocol;
2321
import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers;
24-
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
2522
import com.viaversion.viaversion.api.type.Types;
2623
import com.viaversion.viaversion.protocols.v1_16_1to1_16_2.packet.ClientboundPackets1_16_2;
2724
import com.viaversion.viaversion.protocols.v1_16_1to1_16_2.packet.ServerboundPackets1_16_2;
@@ -48,9 +45,4 @@ public void register() {
4845
});
4946
}
5047

51-
@Override
52-
public void init(UserConnection userConnection) {
53-
userConnection.getProtocolInfo().getPipeline().add(Via.getManager().getProtocolManager().getBaseProtocol(ProtocolVersion.v1_16_2));
54-
}
55-
5648
}

fabric/src/main/resources/fabric.mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"depends": {
2525
"fabricloader": ">=0.14.0",
2626
"viafabric": ">=0.4.10",
27-
"viabackwards": ">=5.0.0"
27+
"viaversion": ">=5.0.4-SNAPSHOT",
28+
"viabackwards": ">=5.0.4-SNAPSHOT"
2829
},
2930
"custom": {
3031
"modmenu:api": true,

0 commit comments

Comments
 (0)