Skip to content

Commit

Permalink
Merge branch 'main' into 132-port-to-neoforged-1204
Browse files Browse the repository at this point in the history
  • Loading branch information
doc-bok committed Aug 14, 2024
2 parents 1cb8ee2 + bf5a86d commit 417934f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### 5.0.1 (2024-08-14)
- Fixed incorrect syncing from client to server.

### 5.0.0 (2024-08-11)
- Release v5.0.0

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod_name=Butterfly Mod
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=All Rights Reserved
# The mod version. See https://semver.org/
mod_version=5.0.0
mod_version=5.0.1
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public static void onDatapackSync(OnDatapackSyncEvent event) {
// Handle a single player.
if (event.getPlayer() != null) {
event.getPlayer().connection.send(payload);
}

// Handle multiple players.
event.getPlayerList();
for (ServerPlayer i : event.getPlayerList().getPlayers()) {
i.connection.send(payload);
} else {
// Handle multiple players.
event.getPlayerList();
for (ServerPlayer i : event.getPlayerList().getPlayers()) {
i.connection.send(payload);
}
}
}
}
Expand Down

0 comments on commit 417934f

Please sign in to comment.