mirror of
https://github.com/TeamMidnightDust/VisualOverhaul.git
synced 2025-12-16 14:05:08 +01:00
VisualOverhaul 3.2.0 - Compat & Stability
- Overhaul Phonos's Radio Jukebox -Added compat with Biome Makeover, Desolation, Dynamic Discs, Extra Discs and Phonos discs - Fixed crash with Charm - Way smoother biome-colored items - Biome colored items for more vanilla items - Serverside method to get music discs is now prioritized, clientside method only applies if the ItemStack is empty - Move puddles into a seperate mod
This commit is contained in:
@@ -26,11 +26,15 @@ public abstract class MixinSoundSystem {
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(at = @At("TAIL"),method = "stop(Lnet/minecraft/client/sound/SoundInstance;)V")
|
||||
@Inject(at = @At("HEAD"),method = "stop(Lnet/minecraft/client/sound/SoundInstance;)V")
|
||||
public void onStopRecordSound(SoundInstance soundInstance, CallbackInfo ci) {
|
||||
if (soundInstance.getCategory().equals(SoundCategory.RECORDS) && SoundTest.soundPos.containsKey(new BlockPos(soundInstance.getX(),soundInstance.getY(),soundInstance.getZ()))) {
|
||||
jukeboxPos = new BlockPos(soundInstance.getX(),soundInstance.getY(),soundInstance.getZ());
|
||||
SoundTest.soundPos.remove(jukeboxPos,soundInstance.getId());
|
||||
if (soundInstance != null) {
|
||||
if (soundInstance.getCategory().equals(SoundCategory.RECORDS)) {
|
||||
jukeboxPos = new BlockPos(soundInstance.getX(), soundInstance.getY(), soundInstance.getZ());
|
||||
if (SoundTest.soundPos.containsKey(jukeboxPos)) {
|
||||
SoundTest.soundPos.remove(jukeboxPos, soundInstance.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user