From 0bb77481d14c6eae77dc68703ebf0b8fa296dca3 Mon Sep 17 00:00:00 2001 From: Matyrobbrt Date: Sat, 26 Oct 2024 16:10:45 +0300 Subject: [PATCH] Comment out broken code in overlord behaviour --- .../client/game/handler/GameCraftingBeeHandler.java | 8 ++------ .../content/river_race/behaviour/OverlordBehavior.java | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/lovetropics/minigames/client/game/handler/GameCraftingBeeHandler.java b/src/main/java/com/lovetropics/minigames/client/game/handler/GameCraftingBeeHandler.java index 17ae50e2..2b20997d 100644 --- a/src/main/java/com/lovetropics/minigames/client/game/handler/GameCraftingBeeHandler.java +++ b/src/main/java/com/lovetropics/minigames/client/game/handler/GameCraftingBeeHandler.java @@ -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; @@ -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(); diff --git a/src/main/java/com/lovetropics/minigames/common/content/river_race/behaviour/OverlordBehavior.java b/src/main/java/com/lovetropics/minigames/common/content/river_race/behaviour/OverlordBehavior.java index 4d2666ea..c5367486 100644 --- a/src/main/java/com/lovetropics/minigames/common/content/river_race/behaviour/OverlordBehavior.java +++ b/src/main/java/com/lovetropics/minigames/common/content/river_race/behaviour/OverlordBehavior.java @@ -31,7 +31,7 @@ public OverlordBehavior(GameActionList 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) -> { @@ -52,5 +52,6 @@ public void register(IGamePhase game, EventRegistrar events) throws GameExceptio } return false; }); + */ } }