From 6fca48af2ed1801992d56fb508085b523779979d Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Thu, 12 Oct 2023 20:55:30 -0400 Subject: [PATCH] lol, lmao close #4373 --- .../tweaks/module/ReacharoundPlacingModule.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/vazkii/quark/content/tweaks/module/ReacharoundPlacingModule.java b/src/main/java/vazkii/quark/content/tweaks/module/ReacharoundPlacingModule.java index 3224e16767..401027afc3 100644 --- a/src/main/java/vazkii/quark/content/tweaks/module/ReacharoundPlacingModule.java +++ b/src/main/java/vazkii/quark/content/tweaks/module/ReacharoundPlacingModule.java @@ -1,13 +1,8 @@ package vazkii.quark.content.tweaks.module; -import java.util.List; - -import org.apache.commons.lang3.tuple.Pair; - import com.google.common.collect.Lists; import com.mojang.blaze3d.platform.Window; import com.mojang.blaze3d.vertex.PoseStack; - import net.minecraft.client.Minecraft; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; @@ -41,6 +36,7 @@ import net.minecraftforge.event.TickEvent.Phase; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; +import org.apache.commons.lang3.tuple.Pair; import vazkii.quark.base.Quark; import vazkii.quark.base.handler.RayTraceHandler; import vazkii.quark.base.module.LoadModule; @@ -50,6 +46,8 @@ import vazkii.quark.base.module.config.type.inputtable.RGBColorConfig; import vazkii.quark.integration.claim.IClaimIntegration; +import java.util.List; + @LoadModule(category = ModuleCategory.TWEAKS, hasSubscriptions = true) public class ReacharoundPlacingModule extends QuarkModule { @@ -77,7 +75,7 @@ public void setup() { @SubscribeEvent @OnlyIn(Dist.CLIENT) public void onRender(RenderGuiOverlayEvent.Pre event) { - if(event.getOverlay() == VanillaGuiOverlay.CROSSHAIR.type()) + if(event.getOverlay() != VanillaGuiOverlay.CROSSHAIR.type()) return; Minecraft mc = Minecraft.getInstance();