Prevent ArrayIndexOutOfBoundsException when loading a newly created Camera Path by loading it from the dirty version | https://trello.com/c/WPikP6ig/

This commit is contained in:
CrushedPixel
2015-06-29 16:04:20 +02:00
parent e446a0cc6b
commit 645edbb20e
2 changed files with 6 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ public class GuiKeyframeRepository extends GuiScreen implements GuiReplayOverlay
keyframeSetList.removeElement(keyframeSetList.getSelectionIndex());
break;
case GuiConstants.KEYFRAME_REPOSITORY_LOAD_BUTTON:
ReplayHandler.useKeyframePresetFromRepository(keyframeSetList.getSelectionIndex());
ReplayHandler.useKeyframePreset(keyframeRepository[keyframeSetList.getSelectionIndex()].getKeyframes());
saveOnQuit();
mc.displayGuiScreen(null);
break;