diff --git a/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java b/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java index 91815070..2c21a106 100644 --- a/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java +++ b/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java @@ -512,6 +512,13 @@ public class GuiPathing { lastTime = time; } + // Make sure there are at least two position- and two time-keyframes + if (timeline.getPaths().get(POSITION_PATH).getSegments().isEmpty() + || timeline.getPaths().get(TIME_PATH).getSegments().isEmpty()) { + GuiInfoPopup.open(replayHandler.getOverlay(), "replaymod.chat.morekeyframes"); + return false; + } + return true; }