mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Disable the dust cloud
This commit is contained in:
parent
a8f0796ad7
commit
04f8827e28
1 changed files with 3 additions and 4 deletions
|
@ -40,7 +40,6 @@ import net.minecraft.entity.player.PlayerEntity;
|
|||
import net.minecraft.entity.damage.DamageSource;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NbtCompound;
|
||||
import net.minecraft.particle.BlockStateParticleEffect;
|
||||
import net.minecraft.particle.ParticleTypes;
|
||||
import net.minecraft.predicate.entity.EntityPredicates;
|
||||
import net.minecraft.registry.RegistryKeys;
|
||||
|
@ -581,10 +580,10 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
|||
entity.calculateDimensions();
|
||||
|
||||
if (entity.isOnGround() || !force) {
|
||||
BlockState steppingState = pony.asEntity().getSteppingBlockState();
|
||||
if (steppingState.isIn(UTags.Blocks.KICKS_UP_DUST)) {
|
||||
//BlockState steppingState = pony.asEntity().getSteppingBlockState();
|
||||
/*if (steppingState.isIn(UTags.Blocks.KICKS_UP_DUST)) {
|
||||
pony.addParticle(new BlockStateParticleEffect(UParticles.DUST_CLOUD, steppingState), pony.getOrigin().toCenterPos(), Vec3d.ZERO);
|
||||
} else {
|
||||
} else*/ {
|
||||
Supplier<Vec3d> pos = VecHelper.sphere(pony.asWorld().getRandom(), 0.5D);
|
||||
Supplier<Vec3d> vel = VecHelper.sphere(pony.asWorld().getRandom(), 0.015D);
|
||||
pony.spawnParticles(ParticleTypes.CLOUD, pos, vel, 5);
|
||||
|
|
Loading…
Reference in a new issue