Skip to content

Commit

Permalink
Merge branch '1.20.1'
Browse files Browse the repository at this point in the history
* 1.20.1:
  Added missing translation
  Lowered fabric api version requirement
  Fixed forge networking issue

# Conflicts:
#	forge/src/main/java/com/faboslav/friendsandfoes/platform/forge/PacketChannelManagerImpl.java
  • Loading branch information
Faboslav committed Dec 18, 2023
2 parents f9bc96a + fdc31c7 commit ad387b5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,4 @@ public static <T extends Packet<T>> void sendToServer(Identifier channel, T pack
public static <T extends Packet<T>> void sendToPlayer(Identifier channel, T packet, PlayerEntity player) {
throw new NotImplementedException();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@
"subtitle.entity.friendsandfoes.wildfire.shockwave": "Wilsfire shockwaves",
"subtitle.entity.friendsandfoes.wildfire.shoot": "Wildfire shoots",
"subtitle.entity.friendsandfoes.wildfire.step": "Footsteps",
"subtitle.entity.friendsandfoes.wildfire.summon_blaze": "Wildfire summons blazes"
}
"subtitle.entity.friendsandfoes.wildfire.summon_blaze": "Wildfire summons blazes",
"trinkets.slot.charm.charm": "Charm"
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ private static void onSetup(FMLCommonSetupEvent event) {
}

private static void onDatapackSync(OnDatapackSyncEvent event) {
if (event.getPlayer() != null) {
DatapackSyncEvent.EVENT.invoke(new DatapackSyncEvent(event.getPlayer()));
} else {
event.getPlayerList().getPlayerList().forEach(player -> DatapackSyncEvent.EVENT.invoke(new DatapackSyncEvent(player)));
if (FMLEnvironment.dist.isDedicatedServer()) {
if (event.getPlayer() != null) {
DatapackSyncEvent.EVENT.invoke(new DatapackSyncEvent(event.getPlayer()));
} else {
event.getPlayerList().getPlayerList().forEach(player -> DatapackSyncEvent.EVENT.invoke(new DatapackSyncEvent(player)));
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.configureondemand=false
# Mod
mod_name=Friends&Foes
mod_id=friendsandfoes
mod_version=2.0.5
mod_version=2.0.6
mod_author=Faboslav
mod_description=Adds outvoted and forgotten mobs from the mob votes in a believable vanilla plus style.
maven_group=com.faboslav.friendsandfoes
Expand Down

0 comments on commit ad387b5

Please sign in to comment.