File tree 2 files changed +8
-10
lines changed
src/main/java/io/github/cottonmc/skillcheck/util
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if(rootProject.file("private.gradle").exists()) { //Publishing details
34
34
35
35
archivesBaseName = " skillcheck"
36
36
group = " io.github.cottonmc"
37
- version = " 1.0.8 +1.14.1"
37
+ version = " 1.0.9 +1.14.1"
38
38
39
39
minecraft {
40
40
refmapName = " mixins.skillcheck.refmap.json"
Original file line number Diff line number Diff line change @@ -55,25 +55,23 @@ public static void initServer() {
55
55
});
56
56
}
57
57
58
- @ Environment (EnvType .CLIENT )
58
+
59
+ public static void syncPlayerLevel (int level , ServerPlayerEntity player ) {
60
+ PacketByteBuf buf = new PacketByteBuf (Unpooled .buffer ());
61
+ buf .writeInt (level );
62
+ player .networkHandler .sendPacket (new CustomPayloadS2CPacket (SYNC_PLAYER_LEVEL , buf ));
63
+ }
64
+
59
65
public static void syncSelection (int index ) {
60
66
PacketByteBuf buf = new PacketByteBuf (Unpooled .buffer ());
61
67
buf .writeInt (index );
62
68
MinecraftClient .getInstance ().getNetworkHandler ().getClientConnection ().send (new CustomPayloadC2SPacket (SYNC_SELECTION , buf ));
63
69
}
64
70
65
- @ Environment (EnvType .CLIENT )
66
71
public static void syncLevelup (Identifier id , int xpCost ) {
67
72
PacketByteBuf buf = new PacketByteBuf (Unpooled .buffer ());
68
73
buf .writeIdentifier (id );
69
74
buf .writeInt (xpCost );
70
75
MinecraftClient .getInstance ().getNetworkHandler ().getClientConnection ().send (new CustomPayloadC2SPacket (SYNC_LEVELUP , buf ));
71
76
}
72
-
73
- @ Environment (EnvType .CLIENT )
74
- public static void syncPlayerLevel (int level , ServerPlayerEntity player ) {
75
- PacketByteBuf buf = new PacketByteBuf (Unpooled .buffer ());
76
- buf .writeInt (level );
77
- player .networkHandler .sendPacket (new CustomPayloadS2CPacket (SYNC_PLAYER_LEVEL , buf ));
78
- }
79
77
}
You can’t perform that action at this time.
0 commit comments