Skip to content

Commit

Permalink
Fix corruptater particles spawning twice as fast
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Nov 13, 2024
1 parent e05ae68 commit 02de67c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import xyz.nucleoid.extras.lobby.particle.RandomParticleSpawner;
import xyz.nucleoid.extras.lobby.particle.RandomTaterParticleSpawner;
import xyz.nucleoid.packettweaker.PacketContext;

public final class CorruptaterBlock extends CubicPotatoBlock {
private final Random random = Random.createLocal();
public CorruptaterBlock(AbstractBlock.Settings settings, int particleRate) {
super(settings, new RandomParticleSpawner(CorruptaterBlock::getTater), PolymerUtils.NO_TEXTURE_HEAD_VALUE);
super(settings, new RandomTaterParticleSpawner(CorruptaterBlock::getTater), PolymerUtils.NO_TEXTURE_HEAD_VALUE);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import net.minecraft.util.math.random.Random;
import xyz.nucleoid.extras.lobby.block.tater.CubicPotatoBlock;

public class RandomParticleSpawner extends TaterParticleSpawner {
public class RandomTaterParticleSpawner extends DynamicTaterParticleSpawner {
private final Function<Random, CubicPotatoBlock> taterSupplier;

public RandomParticleSpawner(Function<Random, CubicPotatoBlock> taterSupplier) {
public RandomTaterParticleSpawner(Function<Random, CubicPotatoBlock> taterSupplier) {
this.taterSupplier = taterSupplier;
}

Expand Down

0 comments on commit 02de67c

Please sign in to comment.