Skip to content

Commit

Permalink
Remove unused TesselateBlockEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Oct 29, 2023
1 parent f410190 commit 5930fd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
61 changes: 0 additions & 61 deletions src/main/java/net/wurstclient/events/TesselateBlockListener.java

This file was deleted.

12 changes: 1 addition & 11 deletions src/main/java/net/wurstclient/hacks/XRayHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import net.wurstclient.events.RenderBlockEntityListener;
import net.wurstclient.events.SetOpaqueCubeListener;
import net.wurstclient.events.ShouldDrawSideListener;
import net.wurstclient.events.TesselateBlockListener;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.ISimpleOption;
Expand All @@ -37,7 +36,7 @@
@SearchTags({"XRay", "x ray", "OreFinder", "ore finder"})
public final class XRayHack extends Hack implements UpdateListener,
SetOpaqueCubeListener, GetAmbientOcclusionLightLevelListener,
ShouldDrawSideListener, TesselateBlockListener, RenderBlockEntityListener
ShouldDrawSideListener, RenderBlockEntityListener
{
private final BlockListSetting ores = new BlockListSetting("Ores",
"A list of blocks that X-Ray will show. They don't have to be just ores"
Expand Down Expand Up @@ -109,7 +108,6 @@ public void onEnable()
EVENTS.add(SetOpaqueCubeListener.class, this);
EVENTS.add(GetAmbientOcclusionLightLevelListener.class, this);
EVENTS.add(ShouldDrawSideListener.class, this);
EVENTS.add(TesselateBlockListener.class, this);
EVENTS.add(RenderBlockEntityListener.class, this);

// reload chunks
Expand All @@ -128,7 +126,6 @@ public void onDisable()
EVENTS.remove(SetOpaqueCubeListener.class, this);
EVENTS.remove(GetAmbientOcclusionLightLevelListener.class, this);
EVENTS.remove(ShouldDrawSideListener.class, this);
EVENTS.remove(TesselateBlockListener.class, this);
EVENTS.remove(RenderBlockEntityListener.class, this);

// reload chunks
Expand Down Expand Up @@ -168,13 +165,6 @@ public void onShouldDrawSide(ShouldDrawSideEvent event)
isVisible(event.getState().getBlock(), event.getPos()));
}

@Override
public void onTesselateBlock(TesselateBlockEvent event)
{
if(!isVisible(event.getState().getBlock(), event.getPos()))
event.cancel();
}

@Override
public void onRenderBlockEntity(RenderBlockEntityEvent event)
{
Expand Down

0 comments on commit 5930fd8

Please sign in to comment.