Skip to content

Commit

Permalink
1.21.1 - Remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Wuest committed Oct 5, 2024
1 parent 38f8d21 commit dbdc14c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public class StructureRenderHandler {
private static HashMap<Integer, Triple<Float, Float, Float>> colorRGB;
private static Minecraft mcInstance;
private static final Direction[] DIRECTIONS = Direction.values();
private static long aggregatedTime = 0L;
private static HashMap<Integer, ArrayList<List<BakedQuad>>> blockModelQuads;

/**
Expand Down Expand Up @@ -300,7 +299,6 @@ public static void newRenderPlayerLook(Player player, PoseStack poseStack, Verte
&& StructureRenderHandler.currentConfiguration != null
&& PrefabBase.serverConfiguration.enableStructurePreview) {

long startTime = System.currentTimeMillis();
Level world = player.level();

Camera camera = StructureRenderHandler.mcInstance.getEntityRenderDispatcher().camera;
Expand All @@ -323,11 +321,6 @@ public static void newRenderPlayerLook(Player player, PoseStack poseStack, Verte
renderPosX, renderPosY, renderPosZ, brd, buffer);
}

long endTime = System.currentTimeMillis();
System.out.println("That took " + (endTime - startTime) + " milliseconds");
System.out.println("Aggregated Time took: " + StructureRenderHandler.aggregatedTime + " milliseconds");
StructureRenderHandler.aggregatedTime = 0L;

if (!StructureRenderHandler.showedMessage) {
Minecraft mc = Minecraft.getInstance();

Expand Down

0 comments on commit dbdc14c

Please sign in to comment.