Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
[publish beta]
  • Loading branch information
zly2006 committed Nov 24, 2023
1 parent 3ab9c95 commit 65d9c4b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.github.zly2006.reden.mixin.dynamicSound;

import net.minecraft.client.sound.SoundManager;
import net.minecraft.client.sound.WeightedSoundSet;
import net.minecraft.resource.Resource;
import net.minecraft.util.Identifier;
import org.apache.commons.lang3.NotImplementedException;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;

import java.io.File;
import java.util.Map;

@Mixin(SoundManager.class)
public class MixinSoundManager {
@Shadow @Final private Map<Identifier, Resource> soundResources;

@Shadow @Final private Map<Identifier, WeightedSoundSet> sounds;

private void addSound(Identifier identifier, File file) {
// todo
throw new NotImplementedException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(value = ServerPlayerInteractionManager.class, priority = 1001)
@Mixin(ServerPlayerInteractionManager.class)
public class MixinPlayerMode {
@Shadow
@Final
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/reden/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ reden:
启用日志记录器
debugPacketLogger:
.: debug:启用数据包记录器
.: debug:启用网络包记录器
comment: |-
debugTagBlockPos:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/reden.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"common.MixinClient",
"debug.undoReportUnTrackedTnt.MixinTntEntity",
"debugger.gui.MixinClient",
"dynamicSound.MixinSoundManager",
"forceSyncEntityPos.MixinClientNetwork",
"forceSyncEntityPos.MixinTracker",
"forceSyncEntityPos.MixinWorldRenderer",
Expand Down

0 comments on commit 65d9c4b

Please sign in to comment.