Skip to content

Commit

Permalink
Fix using & instead of &&
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jun 21, 2024
1 parent 725259b commit 9ff7a1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ 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();
}
}

@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();
Expand Down

0 comments on commit 9ff7a1d

Please sign in to comment.