I have got a problem with my TileEntityEnergyStorage. I want to do a method, if (x+1, y, z coords ) are BlockGenerator to set boolean isConnected to true. But it is crashing my MC...
Seriously? Anyone ?
You have a World field at the top of your class which you never initialize, so it will always be null!
The TileEntity class already have a World field which is initialised for you so this is completely unnecessary.
public static World world;
and change the others to.
worldObj.getBlock(x+1, y, z);
Flux Networks - CurseForge - Source Code
Practical Logistics 2 - CurseForge - Source Code
Calculator - CurseForge - Source Code
Bagelsmore - CurseForge - Source Code
Yes, now it isn't crashing, but this:
if (this.isConnected() == true)
worldObj.setBlock(x, y+6, z, Blocks.bookshelf);
in the updateEntity method isn't working. What I do wrong ?