Skip to content

Commit 4166e5a

Browse files
committed
Merge branch 'forge-1.18' into forge-1.19.4
2 parents a8b2b53 + 1eefc80 commit 4166e5a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ mapping_version=2023.06.26-1.19.4
1111
mod_id=multiverse
1212
mod_name=Multiverse
1313
mod_license=GPLv3
14-
mod_version=1.19.4-4.1.0
14+
mod_version=1.19.4-4.1.1
1515
mod_group_id=io.github.davidqf555.minecraft.multiverse
1616
mod_authors=DavidQF555

src/main/java/io/github/davidqf555/minecraft/multiverse/common/world/RiftHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ public static void placeRandomRift(ServerLevel world, boolean temporary, Vec3 ce
9090
public static void doRiftSpawnEffect(Level world, BlockPos pos, @Nullable ResourceKey<Level> target) {
9191
if (world.isClientSide()) {
9292
ClientHelper.addRiftExplosionParticles(Vec3.atCenterOf(pos), target);
93+
world.playLocalSound(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.END_GATEWAY_SPAWN, SoundSource.BLOCKS, 10, 0.7f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f, false);
94+
world.playLocalSound(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.GLASS_BREAK, SoundSource.BLOCKS, 6, 0.8f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f, false);
9395
} else {
9496
Multiverse.CHANNEL.send(PacketDistributor.TRACKING_CHUNK.with(() -> world.getChunkAt(pos)), new RiftExplosionParticlesPacket(Vec3.atCenterOf(pos), target));
97+
world.playSound(null, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.END_GATEWAY_SPAWN, SoundSource.BLOCKS, 10, 0.7f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f);
98+
world.playSound(null, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.GLASS_BREAK, SoundSource.BLOCKS, 6, 0.8f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f);
9599
}
96-
world.playSound(null, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.END_GATEWAY_SPAWN, SoundSource.BLOCKS, 10, 0.7f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f);
97-
world.playSound(null, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SoundEvents.GLASS_BREAK, SoundSource.BLOCKS, 6, 0.8f + (world.random.nextFloat() - world.random.nextFloat()) * 0.14f);
98100
}
99101

100102
public static void destroyRift(Level world, BlockPos pos) {

0 commit comments

Comments
 (0)