Skip to content

Commit

Permalink
removed the NEK api,
Browse files Browse the repository at this point in the history
dont want to be dependant on a changing api. and forge implemented this
in 1.9 fixes:#29
  • Loading branch information
Vectron authored and Vectron committed Apr 20, 2016
1 parent d5308ab commit 55c7a5c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 114 deletions.
47 changes: 0 additions & 47 deletions src/api/java/modwarriors/notenoughkeys/api/Api.java

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions src/api/java/modwarriors/notenoughkeys/api/package-info.java

This file was deleted.

14 changes: 0 additions & 14 deletions src/main/java/mapwriter/forge/MwKeyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

import mapwriter.Mw;
import mapwriter.util.Reference;
import modwarriors.notenoughkeys.api.Api;
import modwarriors.notenoughkeys.api.KeyBindingPressedEvent;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.common.Loader;
Expand Down Expand Up @@ -50,11 +48,6 @@ public MwKeyHandler()
}
listKeyDescs.add(key.getKeyDescription());
}

if (Loader.isModLoaded("notenoughkeys"))
{
Api.registerMod(Reference.MOD_ID, listKeyDescs.toArray(new String[0]));
}
}

@SubscribeEvent
Expand All @@ -66,13 +59,6 @@ public void keyEvent(InputEvent.KeyInputEvent event)
}
}

@Optional.Method(modid = "notenoughkeys")
@SubscribeEvent
public void keyEventSpecial(KeyBindingPressedEvent event)
{
Mw.getInstance().onKeyDown(event.keyBinding);
}

private void checkKeys()
{
for (KeyBinding key : this.keys)
Expand Down

0 comments on commit 55c7a5c

Please sign in to comment.