Fix curseforge issue #28, where keybinds would be reset on game launch
This commit is contained in:
@@ -137,6 +137,8 @@ public class Wizardry {
|
|||||||
|
|
||||||
// Moved to preInit, because apparently it has to be here now.
|
// Moved to preInit, because apparently it has to be here now.
|
||||||
proxy.registerRenderers();
|
proxy.registerRenderers();
|
||||||
|
// It seems this also has to be here
|
||||||
|
proxy.registerKeyBindings();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,8 +147,6 @@ public class Wizardry {
|
|||||||
|
|
||||||
settings.initConfigExtras();
|
settings.initConfigExtras();
|
||||||
|
|
||||||
proxy.registerKeyBindings();
|
|
||||||
|
|
||||||
// Event Handlers
|
// Event Handlers
|
||||||
GameRegistry.registerWorldGenerator(generator, 0);
|
GameRegistry.registerWorldGenerator(generator, 0);
|
||||||
MinecraftForge.EVENT_BUS.register(new WizardryKeyHandler());
|
MinecraftForge.EVENT_BUS.register(new WizardryKeyHandler());
|
||||||
|
|||||||
@@ -154,8 +154,8 @@ public class ClientProxy extends CommonProxy {
|
|||||||
public static MixedFontRenderer mixedFontRenderer;
|
public static MixedFontRenderer mixedFontRenderer;
|
||||||
|
|
||||||
// Key Bindings
|
// Key Bindings
|
||||||
public static final KeyBinding NEXT_SPELL = new KeyBinding("key.wizardry:next_spell", Keyboard.KEY_N, "key.categories.wizardry");
|
public static final KeyBinding NEXT_SPELL = new KeyBinding("key.wizardry.next_spell", Keyboard.KEY_N, "key.categories.wizardry");
|
||||||
public static final KeyBinding PREVIOUS_SPELL = new KeyBinding("key.wizardry:previous_spell", Keyboard.KEY_B, "key.categories.wizardry");
|
public static final KeyBinding PREVIOUS_SPELL = new KeyBinding("key.wizardry.previous_spell", Keyboard.KEY_B, "key.categories.wizardry");
|
||||||
|
|
||||||
// Armour Model
|
// Armour Model
|
||||||
public static final ModelBiped WIZARD_ARMOUR_MODEL = new ModelWizardArmour(0.75f);
|
public static final ModelBiped WIZARD_ARMOUR_MODEL = new ModelWizardArmour(0.75f);
|
||||||
|
|||||||
@@ -616,8 +616,8 @@ enchantment.wizardry:freezing_weapon=Frost Imbuement
|
|||||||
|
|
||||||
key.categories.wizardry=Wizardry
|
key.categories.wizardry=Wizardry
|
||||||
|
|
||||||
key.wizardry:next_spell=Next Spell
|
key.wizardry.next_spell=Next Spell
|
||||||
key.wizardry:previous_spell=Previous Spell
|
key.wizardry.previous_spell=Previous Spell
|
||||||
|
|
||||||
death.attack.wizardry_magic=%1$s was killed by %2$s using magic
|
death.attack.wizardry_magic=%1$s was killed by %2$s using magic
|
||||||
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
|
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
|
||||||
|
|||||||
@@ -616,8 +616,8 @@ enchantment.wizardry:freezing_weapon=Frost Imbuement
|
|||||||
|
|
||||||
key.categories.wizardry=Wizardry
|
key.categories.wizardry=Wizardry
|
||||||
|
|
||||||
key.wizardry:next_spell=Next Spell
|
key.wizardry.next_spell=Next Spell
|
||||||
key.wizardry:previous_spell=Previous Spell
|
key.wizardry.previous_spell=Previous Spell
|
||||||
|
|
||||||
death.attack.wizardry_magic=%1$s was killed by %2$s using magic
|
death.attack.wizardry_magic=%1$s was killed by %2$s using magic
|
||||||
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
|
death.attack.indirect_wizardry_magic=%1$s was killed by %2$s using magic
|
||||||
|
|||||||
@@ -615,8 +615,8 @@ enchantment.wizardry:freezing_weapon=Impregnacion de Fuego
|
|||||||
|
|
||||||
key.categories.wizardry=Wizardry
|
key.categories.wizardry=Wizardry
|
||||||
|
|
||||||
key.wizardry:next_spell=Hechizo siguiente
|
key.wizardry.next_spell=Hechizo siguiente
|
||||||
key.wizardry:previous_spell=Hechizo anterior
|
key.wizardry.previous_spell=Hechizo anterior
|
||||||
|
|
||||||
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
|
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
|
||||||
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
|
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
|
||||||
|
|||||||
@@ -615,8 +615,8 @@ enchantment.wizardry:freezing_weapon=Impregnacion de Fuego
|
|||||||
|
|
||||||
key.categories.wizardry=Wizardry
|
key.categories.wizardry=Wizardry
|
||||||
|
|
||||||
key.wizardry:next_spell=Hechizo siguiente
|
key.wizardry.next_spell=Hechizo siguiente
|
||||||
key.wizardry:previous_spell=Hechizo anterior
|
key.wizardry.previous_spell=Hechizo anterior
|
||||||
|
|
||||||
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
|
death.attack.wizardry_magic=%1$s fue matado por %2$s usando magia
|
||||||
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
|
death.attack.indirect_wizardry_magic=%1$s fue matado por %2$s usando magia
|
||||||
|
|||||||
Reference in New Issue
Block a user