The textures of my Block doesn´t change ingame. When i leave the game and rejoin, the textures are correctly changed. I hear the wrench sound when i right click...
What did i make wrong?
My TileEntity:
Code
public short facing; public short prevFacing; public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); nbt.setShort("Facing", facing); } public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); if(nbt.hasKey("Facing")) { prevFacing = facing = nbt.getShort("Facing"); } }
@Override public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
return side > 1 && facing != side; }
@Override public short getFacing() {
return facing; }
@Override public void setFacing(short face) {
facing = face; prevFacing = face; worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); worldObj.notifyBlockChange(xCoord, yCoord, zCoord, getBlockType()); }
@Override public boolean wrenchCanRemove(EntityPlayer entityPlayer) { // TODO Auto-generated method stub return false; }
@Override public float getWrenchDropRate() {
return 1F; }
@Override public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
return new ItemStack(getBlockType()); }
Display More
Pls help me...
P.S. Sorry for my bad english. I hope you understand me
Edit: I use the newest version of IC2 (2.2.693)