Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Feb 26, 2022
1 parent 2919216 commit 75ee4ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ loader_version=0.12.12
fabric_version=0.45.2+1.18
satin_version=1.7.2

mod_version = 4.2.0
mod_version = 4.2.1
maven_group = net.ludocrypt
archives_base_name = limlib
2 changes: 1 addition & 1 deletion src/main/java/net/ludocrypt/limlib/api/LimLibClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onInitializeClient() {
if (state.getBlock()instanceof RandomSoundEmitter rse) {
if (world.getRandom().nextDouble() < rse.getChance(world, state, pos)) {
Vec3d relativePos = rse.getRelativePos(world, state, pos);
world.playSound(pos.getX() + relativePos.getX(), pos.getY() + relativePos.getY(), pos.getZ() + relativePos.getZ(), rse.getSound(world, state, pos), rse.getSoundCategory(world, state, pos), rse.getVolume(world, state, pos), rse.getPitch(world, state, pos), true);
world.playSound(null, pos.getX() + relativePos.getX(), pos.getY() + relativePos.getY(), pos.getZ() + relativePos.getZ(), rse.getSound(world, state, pos), rse.getSoundCategory(world, state, pos), rse.getVolume(world, state, pos), rse.getPitch(world, state, pos));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public abstract class NbtChunkGenerator extends LiminalChunkGenerator {
public final Identifier nbtId;
public final List<String> structures;

public NbtChunkGenerator(BiomeSource biomeSource, long worldSeed, Identifier nbtId) {
super(biomeSource, worldSeed);
this.nbtId = nbtId;
this.structures = List.of();
}

public NbtChunkGenerator(BiomeSource biomeSource, long worldSeed, Identifier nbtId, List<String> structures) {
super(biomeSource, worldSeed);
this.nbtId = nbtId;
Expand All @@ -48,8 +54,6 @@ public int getMinimumY() {
return 0;
}

// impl

public void storeStructures(ServerWorld world) {
this.structures.forEach((string) -> this.store(string, world));
}
Expand Down

0 comments on commit 75ee4ae

Please sign in to comment.