Hi.
I don't speak english and it's very hard for me explain my problem properly, sorry.
I have a problem with this code:
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if(!(par1World.isRemote))
{
if(hayLava(par1World,par2,par3,par4)) //Determine if lava touch my block
{
par1World.setBlockWithNotify(par2, par3, par4, Nemod.reforzado2.blockID);
}
}
}
In game, the block never change to "Nemod.reforzado2.blockId". If I remove the "if(!par1World.isRemote)" line, the block appears to change, but not properly. If I look the block in McEdit, the block has the old ID, but in game showme the new block There seems to be two worlds in the same game, the server world and the client world, but why i can change any block in the "server world"?
I tried multiple ways to do it, but I not found any solution. Can you help me? Tell me if you need more information or screenshots.
Thank's in advance and sorry for my bad english.