mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Registered forge events on both MinecraftForge.EVENT_BUS and FMLCommonHandler.instance().bus().
This commit is contained in:
1 parent
ce9b9fb59d
commit
e5edbe002e
3 files changed
+4
-12
No files matched your search
@@ -69,13 +69,6 @@ public class ServerEventsHandler {
|
||||
// exps.put(player.getCommandSenderName(), player.experienceTotal);
|
||||
// }
|
||||
|
||||
@SubscribeEvent
|
||||
public void invoke(CommandEvent event){
|
||||
if(CustomNpcs.getServer() != null && ScriptController.Instance.forgeScripts.isEnabled()) {
|
||||
EventHooks.onForgeEvent(new ForgeEvent(event), event);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void invoke(EntityInteractEvent event) {
|
||||
ItemStack item = event.entityPlayer.getCurrentEquippedItem();
|
||||
|
||||
Reference in new issue
Block a user