Skip to content

Commit

Permalink
fix: added 1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
meza committed Aug 20, 2023
1 parent 72fb34a commit 7c496ee
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
if: ${{ matrix.java == '17' && runner.os == 'Linux' && (steps.get-next-version.outputs.new-release-published == 'true') }}
with:
version-type: ${{ env.RELEASE_TYPE }}
name: "SoundsBeGone ${{ needs.get-next-version.outputs.new-release-version }} for Minecraft 1.19.2"
name: "SoundsBeGone ${{ needs.get-next-version.outputs.new-release-version }} for Minecraft 1.18.2"
version: ${{ needs.get-next-version.outputs.new-release-version }}
modrinth-id: ${{ vars.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
Expand All @@ -95,7 +95,7 @@ jobs:
fabric
quilt
game-versions: |
1.19.2
1.18.2
java: |
17
dependencies: |
Expand Down
4 changes: 2 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"MC-1.19.2",
"MC-1.18.2",
"main",
{
"name": "beta",
Expand All @@ -12,7 +12,7 @@
"prerelease": true
}
],
"tagFormat": "v${version}-MC1.19.2",
"tagFormat": "v${version}-MC1.18.2",
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
archivesName = project.archives_base_name + "-MC" + project.minecraft_version
}

repositories {
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.4
loader_version=0.14.22

# Mod Properties
Expand All @@ -14,6 +14,6 @@ maven_group=gg.meza
archives_base_name=soundsbegone

# Dependencies
fabric_version=0.76.1+1.19.2
modmenu_version=4.1.2
cloth_version=8.3.103
fabric_version=0.76.0+1.18.2
modmenu_version=3.2.5
cloth_version=6.5.102
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SoundInterceptorMixin {
@Inject(at = @At("HEAD"), method = "play(Lnet/minecraft/client/sound/SoundInstance;)V", cancellable = true)
private void run(SoundInstance sound, CallbackInfo info) {
String id = sound.getId().toString();
String name = sound.getId().toTranslationKey();
String name = sound.getId().toUnderscoreSeparatedString();

if (SoundsBeGoneClient.config.isSoundDisabled(id)) {
LOGGER.debug("Disabling the sound: {}", id);
Expand All @@ -28,7 +28,7 @@ private void run(SoundInstance sound, CallbackInfo info) {
}

if(MinecraftClient.getInstance().world != null) {
LOGGER.debug("Intercepting the sound: {}", Text.translatable(name));
LOGGER.debug("Intercepting the sound: {}", Text.of(name));
SoundMap.put(id, new java.util.Date());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
],
"depends": {
"fabricloader": ">=0.14.22",
"minecraft": ["1.19.2"],
"minecraft": ["1.18.2"],
"java": ">=17",
"fabric-api": "*",
"modmenu": "*",
Expand Down

0 comments on commit 7c496ee

Please sign in to comment.