Stopped registering common and server configs as they are unused.
This commit is contained in:
@ -39,8 +39,6 @@ public final class Config {
|
||||
|
||||
public static void register() {
|
||||
ModLoadingContext.get().registerConfig(ModConfig.Type.CLIENT, CLIENT_SPEC);
|
||||
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, COMMON_SPEC);
|
||||
ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, SERVER_SPEC);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package dev.micle.firefly_bush_backport.particle;
|
||||
|
||||
import dev.micle.firefly_bush_backport.config.Config;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.client.particle.*;
|
||||
import net.minecraft.client.world.ClientWorld;
|
||||
import net.minecraft.entity.Entity;
|
||||
@ -85,7 +86,7 @@ public class FireflyParticle extends SpriteTexturedParticle {
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.level.getBlockState(new BlockPos(this.x, this.y, this.z)).isAir()) {
|
||||
if (!this.level.getBlockState(new BlockPos(this.x, this.y, this.z)).is(Blocks.AIR)) {
|
||||
this.remove();
|
||||
} else {
|
||||
this.setAlpha(getFadeAmount(this.getLifetimeProgress(this.age),
|
||||
|
||||
Reference in New Issue
Block a user