Fixed Keybinds
This commit is contained in:
parent
c48aeceae4
commit
ebf6f928bc
|
|
@ -91,7 +91,7 @@ public class RenderEvents
|
||||||
public void inputEvent(InputEvent event) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
|
public void inputEvent(InputEvent event) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
|
||||||
{
|
{
|
||||||
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
||||||
Field field = KeyBinding.class.getDeclaredFields()[7];
|
Field field = KeyBinding.class.getDeclaredFields()[8];
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
ItemStack stack = Minecraft.getMinecraft().player.getHeldItemMainhand();
|
ItemStack stack = Minecraft.getMinecraft().player.getHeldItemMainhand();
|
||||||
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))
|
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
"modid" : "carryon",
|
"modid" : "carryon",
|
||||||
"name" : "Carry On",
|
"name" : "Carry On",
|
||||||
"version" : "1.0", "mcversion" : "1.11.2",
|
"version" : "1.0", "mcversion" : "1.12",
|
||||||
"url" : "",
|
"url" : "",
|
||||||
"credits" : "Tschipp, Purplicious_Cow, cy4n",
|
"credits" : "Tschipp, Purplicious_Cow, cy4n",
|
||||||
"authorList" : ["Tschipp, Purplicious_Cow, cy4n"],
|
"authorList" : ["Tschipp, Purplicious_Cow, cy4n"],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user