@Override
public void setCamoState(IBlockState state) {
if (!(state instanceof IExtendedBlockState)) {
if (this.getCamoState() == state.getBlock().getExtendedState(state, this.getWorld(), this.getPos())) {
return;
}
this.getCamoSettings().setCamoBlockState(state.getBlock().getExtendedState(state, this.getWorld(), this.getPos()));
} else {
if (this.getCamoState() == state) {
return;
}
this.getCamoSettings().setCamoBlockState(state);
}
this.camoBlockStateTemp = state;
if (!world.isRemote) {
OMLibNetworkingHandler.INSTANCE.sendToAllTracking(new MessageCamoSettings(this),
new NetworkRegistry.TargetPoint(this.getWorld().provider.getDimension(), this.getPos().getX(), this.getPos().getY(), this.getPos().getZ(), 80));
this.markBlockForUpdate();
}
}