GUI glitch when opened via mob

Started by mtus45 on Tue, 03/01/2016 - 00:33
Last seen on 22:26, 1. Mar 2016
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
GUI glitch when opened via mob
Tue, 03/01/2016 - 00:33

My mcreator simply glitches when I put a function on mobs of "when right clicked on mob= open basic GUI" and when I recompile it glitches and say:

 

if(entity instanceof EntityPlayer)((EntityPlayer)entity).openGui(instance, mcreator_jedi1.GUIID, world, i, j, k);
                                                                 ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
1 warning

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

or:

C:\Pylo\MCreator165\forge\build\sources\main\java\mod\mcreator\mcreator_ahsoka.java:234: error: non-static variable instance cannot be referenced from a static context
if(entity instanceof EntityPlayer)((EntityPlayer)entity).openGui(instance, mcreator_jedi1.GUIID, world, i, j, k);
                                                                 ^

I already edited it and had no success. Help, plz!