Skip to content

Commit

Permalink
Comment out broken code in overlord behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Oct 26, 2024
1 parent 147365b commit 0bb7748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import net.neoforged.neoforge.client.event.RegisterClientTooltipComponentFactoriesEvent;
import net.neoforged.neoforge.client.event.ScreenEvent;
import org.jetbrains.annotations.Nullable;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -251,12 +252,7 @@ private static void renderItem(
Lighting.setupFor3DItems();
}
} catch (Throwable throwable) {
CrashReport crashreport = CrashReport.forThrowable(throwable, "Rendering item");
CrashReportCategory crashreportcategory = crashreport.addCategory("Item being rendered");
crashreportcategory.setDetail("Item Type", () -> String.valueOf(stack.getItem()));
crashreportcategory.setDetail("Item Components", () -> String.valueOf(stack.getComponents()));
crashreportcategory.setDetail("Item Foil", () -> String.valueOf(stack.hasFoil()));
throw new ReportedException(crashreport);
LoggerFactory.getLogger(GameCraftingBeeHandler.class).error("error", throwable);
}

graphics.pose().popPose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public OverlordBehavior(GameActionList<ServerPlayer> powers) {

@Override
public void register(IGamePhase game, EventRegistrar events) throws GameException {
// THIS IS TEMPORARY LOL CHILL ANYBODY WHO READS THIS
/* THIS IS TEMPORARY LOL CHILL ANYBODY WHO READS THIS
events.listen(GamePlayerEvents.CHAT, (player, message) -> {
Expand All @@ -52,5 +52,6 @@ public void register(IGamePhase game, EventRegistrar events) throws GameExceptio
}
return false;
});
*/
}
}

0 comments on commit 0bb7748

Please sign in to comment.