Reformat Code
All checks were successful
Twine/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-06-28 13:42:35 -04:00
parent 8c2bcd7ddb
commit d33fb21a7b

View File

@ -30,7 +30,7 @@ public class GlowingObsidianBlock extends Block {
public void onSteppedOn(World world, BlockPos pos, Entity entity) { public void onSteppedOn(World world, BlockPos pos, Entity entity) {
super.onSteppedOn(world, pos, entity); super.onSteppedOn(world, pos, entity);
if (!world.isClient() && entity instanceof LivingEntity) { if (!world.isClient() && entity instanceof LivingEntity) {
((ServerWorld) world).spawnParticles(ParticleTypes.SMOKE, pos.getX() + 0.5d, pos.getY() + 1d, pos.getZ() + 0.5d, 3 + world.getRandom().nextInt(3), 0.2d, 0.5d, 0.2d,0.01d); ((ServerWorld) world).spawnParticles(ParticleTypes.SMOKE, pos.getX() + 0.5d, pos.getY() + 1d, pos.getZ() + 0.5d, 3 + world.getRandom().nextInt(3), 0.2d, 0.5d, 0.2d, 0.01d);
if (entity.age % 10 == 0) { if (entity.age % 10 == 0) {
final float amount = 2f; final float amount = 2f;
if (entity instanceof Monster) { if (entity instanceof Monster) {