From 5213d0050eb7f52665f900d972912803d9f5fcf5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 18 Mar 2019 15:47:54 +0200 Subject: [PATCH] Add the modid for all the hook classes --- src/main/java/com/minelittlepony/unicopia/ClientHooks.java | 2 +- .../java/com/minelittlepony/unicopia/init/ClientHooks.java | 4 +++- src/main/java/com/minelittlepony/unicopia/init/Hooks.java | 4 +++- src/main/java/com/minelittlepony/unicopia/player/Hooks.java | 3 ++- src/main/java/com/minelittlepony/unicopia/world/Hooks.java | 4 +++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ClientHooks.java b/src/main/java/com/minelittlepony/unicopia/ClientHooks.java index 845cd16d..4cc047be 100644 --- a/src/main/java/com/minelittlepony/unicopia/ClientHooks.java +++ b/src/main/java/com/minelittlepony/unicopia/ClientHooks.java @@ -22,7 +22,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.Phase; import net.minecraftforge.fml.relauncher.Side; -@EventBusSubscriber(Side.CLIENT) +@EventBusSubscriber(value = Side.CLIENT, modid = Unicopia.MODID) class ClientHooks { // This fixes lighting errors on the armour slots. // #MahjongPls diff --git a/src/main/java/com/minelittlepony/unicopia/init/ClientHooks.java b/src/main/java/com/minelittlepony/unicopia/init/ClientHooks.java index b3aaf963..321c65fd 100644 --- a/src/main/java/com/minelittlepony/unicopia/init/ClientHooks.java +++ b/src/main/java/com/minelittlepony/unicopia/init/ClientHooks.java @@ -1,11 +1,13 @@ package com.minelittlepony.unicopia.init; +import com.minelittlepony.unicopia.Unicopia; + import net.minecraftforge.client.event.ColorHandlerEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.relauncher.Side; -@EventBusSubscriber(Side.CLIENT) +@EventBusSubscriber(value = Side.CLIENT, modid = Unicopia.MODID) class ClientHooks { @SubscribeEvent diff --git a/src/main/java/com/minelittlepony/unicopia/init/Hooks.java b/src/main/java/com/minelittlepony/unicopia/init/Hooks.java index bbcec5e0..cbdc8687 100644 --- a/src/main/java/com/minelittlepony/unicopia/init/Hooks.java +++ b/src/main/java/com/minelittlepony/unicopia/init/Hooks.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.init; +import com.minelittlepony.unicopia.Unicopia; + import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.potion.Potion; @@ -9,7 +11,7 @@ import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.registry.EntityEntry; -@EventBusSubscriber +@EventBusSubscriber(modid = Unicopia.MODID) class Hooks { @SubscribeEvent diff --git a/src/main/java/com/minelittlepony/unicopia/player/Hooks.java b/src/main/java/com/minelittlepony/unicopia/player/Hooks.java index 60c427fb..4b1a3a70 100644 --- a/src/main/java/com/minelittlepony/unicopia/player/Hooks.java +++ b/src/main/java/com/minelittlepony/unicopia/player/Hooks.java @@ -1,6 +1,7 @@ package com.minelittlepony.unicopia.player; import com.minelittlepony.unicopia.Race; +import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.entity.IMagicals; import net.minecraft.entity.Entity; @@ -20,7 +21,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.Phase; -@EventBusSubscriber +@EventBusSubscriber(modid = Unicopia.MODID) class Hooks { @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) { diff --git a/src/main/java/com/minelittlepony/unicopia/world/Hooks.java b/src/main/java/com/minelittlepony/unicopia/world/Hooks.java index 9741c6a7..4521373c 100644 --- a/src/main/java/com/minelittlepony/unicopia/world/Hooks.java +++ b/src/main/java/com/minelittlepony/unicopia/world/Hooks.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.world; +import com.minelittlepony.unicopia.Unicopia; + import net.minecraft.util.EnumActionResult; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.event.entity.player.UseHoeEvent; @@ -12,7 +14,7 @@ import net.minecraftforge.fml.common.eventhandler.Event.Result; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.Phase; -@EventBusSubscriber +@EventBusSubscriber(modid = Unicopia.MODID) public class Hooks { @SubscribeEvent