From 9ff7a1db94f2a8ff3e9f7c69a6d9809a7b7a6774 Mon Sep 17 00:00:00 2001 From: ev chang Date: Sat, 22 Jun 2024 06:38:41 +0700 Subject: [PATCH] Fix using & instead of && --- .../overflowparticles/mixin/EntityLivingBaseMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();