diff --git a/src/main/java/org/polyfrost/overflowparticles/mixin/EntityLivingBaseMixin.java b/src/main/java/org/polyfrost/overflowparticles/mixin/EntityLivingBaseMixin.java index 657d820..c7e078c 100644 --- a/src/main/java/org/polyfrost/overflowparticles/mixin/EntityLivingBaseMixin.java +++ b/src/main/java/org/polyfrost/overflowparticles/mixin/EntityLivingBaseMixin.java @@ -27,7 +27,7 @@ public EntityLivingBaseMixin(World worldIn) { @SuppressWarnings({"ConstantConditions"}) @Inject(method = "updatePotionEffects", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;spawnParticle(Lnet/minecraft/util/EnumParticleTypes;DDDDDD[I)V"), cancellable = true) private void cleanView(CallbackInfo ci) { - if (worldObj != null & isServerWorld()) return; + if (worldObj != null && isServerWorld()) return; if (MainConfig.INSTANCE.getSettings().getCleanView() && (Object) this == UMinecraft.getPlayer()) { ci.cancel(); } @@ -35,7 +35,7 @@ private void cleanView(CallbackInfo ci) { @Redirect(method = "updateFallState", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/Block;getMaterial()Lnet/minecraft/block/material/Material;")) private Material fall(Block instance) { - if (worldObj != null & isServerWorld()) return instance.getMaterial(); + if (worldObj != null && isServerWorld()) return instance.getMaterial(); ParticleConfig config = OverflowParticles.INSTANCE.getConfigs().get(37); if (!config.enabled) return Material.air; BlockParticleEntry entry = ModConfig.INSTANCE.getBlockSetting();