From b74ba302810c7cafcef06c518bf24a62316e7664 Mon Sep 17 00:00:00 2001 From: Matt <4009945+MattBDev@users.noreply.github.com> Date: Mon, 21 Aug 2023 19:09:35 -0400 Subject: [PATCH] Fixed NPE in DebugRoadRegen command --- .../main/java/com/plotsquared/core/command/DebugRoadRegen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java b/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java index 453494994..df6bd11d6 100644 --- a/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java +++ b/Core/src/main/java/com/plotsquared/core/command/DebugRoadRegen.java @@ -96,6 +96,7 @@ public class DebugRoadRegen extends SubCommand { PlotArea area = location.getPlotArea(); if (area == null) { player.sendMessage(TranslatableCaption.of("errors.not_in_plot_world")); + return false; } Plot plot = player.getCurrentPlot(); if (plot == null) {