From 3f5c191b2c7c0fb82cf6c3a439f28233e2faafe5 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 19 May 2019 19:46:10 +0200 Subject: [PATCH] Integrated clone type Closes #30 --- .../codearena/minecraft/gui/GUISetupCloneFinding.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/simonbaars/codearena/minecraft/gui/GUISetupCloneFinding.java b/src/main/java/com/simonbaars/codearena/minecraft/gui/GUISetupCloneFinding.java index d6b132e..464dc8b 100644 --- a/src/main/java/com/simonbaars/codearena/minecraft/gui/GUISetupCloneFinding.java +++ b/src/main/java/com/simonbaars/codearena/minecraft/gui/GUISetupCloneFinding.java @@ -266,6 +266,9 @@ protected void actionPerformed(GuiButton button) { Settings.get().setMinAmountOfNodes(Integer.parseInt(minLines)); } catch(Exception e) {} } + try { + Settings.get().setCloneType(com.simonbaars.clonerefactor.settings.CloneType.valueOf("TYPE"+cloneType)); + } catch (Exception e) {} CloneDetection.get().eventHandler.nextTickActions.add(() -> ProblemDetectionThread.startWorker( Minecraft.getMinecraft().player, InputProject.getText())); } if (button.id == 1) {