Skip to content

Commit

Permalink
1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Jun 14, 2024
1 parent bf751ca commit 404f15b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ private <T> BiConsumer<T, CustomPayloadEvent.Context> buildHandler(Consumer<Pack
return (message, ctx) -> {
try
{
Side side = ctx.isServerSide() ? Side.SERVER : Side.CLIENT;
ServerPlayer player = ctx.getSender();
handler.accept(new PacketContext<>(player, message, side));
ctx.setPacketHandled(true);
ctx.enqueueWork(() -> {
Side side = ctx.isServerSide() ? Side.SERVER : Side.CLIENT;
ServerPlayer player = ctx.getSender();
handler.accept(new PacketContext<>(player, message, side));
});
}
catch (Throwable t)
{
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ curseforge_project_id=806044
modrinth_project_id=HIuqnQpi

# Common
minecraft_version=1.21-pre4
minecraft_version=1.21

# Forge
forge_version=50.0.9
forge_version=51.0.0

#neoforge
neoforge_version=20.6.48-beta
neoforge_version=21.0.0-beta

# Fabric
fabric_version=0.99.5+1.21
fabric_version=0.100.1+1.21
fabric_loader_version=0.15.11

# Mod options
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ plugins {
rootProject.name = 'common-networking'
include("common")
include("fabric")
//include("forge")
//include("neoforge")
include("forge")
include("neoforge")

0 comments on commit 404f15b

Please sign in to comment.