Replace @Mod.Instance with direct static references

(cherry picked from commit 4b605cc)
This commit is contained in:
johni0702
2016-12-29 16:36:38 +01:00
parent 7b491d188d
commit 503b308043
11 changed files with 23 additions and 32 deletions

View File

@@ -13,7 +13,6 @@ import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.RenderPlayer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import org.lwjgl.input.Keyboard;
@@ -21,14 +20,15 @@ import java.io.IOException;
import java.util.*;
public class PlayerOverview implements Extra {
@Mod.Instance(ReplayModReplay.MOD_ID)
private static ReplayModReplay module;
private ReplayModReplay module;
private final Set<UUID> hiddenPlayers = new HashSet<>();
private boolean savingEnabled;
@Override
public void register(final ReplayMod mod) throws Exception {
this.module = ReplayModReplay.instance;
mod.getKeyBindingRegistry().registerKeyBinding("replaymod.input.playeroverview", Keyboard.KEY_B, new Runnable() {
@Override
public void run() {