Fixed Keybinds

This commit is contained in:
Tschipp 2017-08-14 11:12:54 +02:00
parent c48aeceae4
commit ebf6f928bc
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class RenderEvents
public void inputEvent(InputEvent event) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
{
GameSettings settings = Minecraft.getMinecraft().gameSettings;
Field field = KeyBinding.class.getDeclaredFields()[7];
Field field = KeyBinding.class.getDeclaredFields()[8];
field.setAccessible(true);
ItemStack stack = Minecraft.getMinecraft().player.getHeldItemMainhand();
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))

View File

@ -2,7 +2,7 @@
{
"modid" : "carryon",
"name" : "Carry On",
"version" : "1.0", "mcversion" : "1.11.2",
"version" : "1.0", "mcversion" : "1.12",
"url" : "",
"credits" : "Tschipp, Purplicious_Cow, cy4n",
"authorList" : ["Tschipp, Purplicious_Cow, cy4n"],