Skip to content

Commit

Permalink
Fix network
Browse files Browse the repository at this point in the history
  • Loading branch information
yuesha-yc committed Jan 18, 2025
1 parent a5a24d3 commit 513afdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/teammoeg/chorda/team/TeamDataHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.teammoeg.chorda.ChordaNetwork;
import com.teammoeg.chorda.util.utility.OptionalLazy;
import com.teammoeg.chorda.network.CMessage;
import com.teammoeg.frostedheart.FHNetwork;
import dev.ftb.mods.ftbteams.api.Team;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.level.ServerPlayer;
Expand Down Expand Up @@ -96,7 +97,8 @@ public void forEachOnline(Consumer<ServerPlayer> consumer) {
public void sendToOnline(CMessage packet) {
if(team.isPresent())
for (ServerPlayer spe : team.get().getOnlineMembers())
ChordaNetwork.sendPlayer(spe, packet);
// TODO: make this use Chorda somehow...
FHNetwork.sendPlayer(spe, packet);
}
public UUID getId() {
return id;
Expand Down

0 comments on commit 513afdc

Please sign in to comment.